src/Http/Controllers/DefaultRestController.php
public function destroy(Request $request, $resource, $id)
    {
        $command = $this->translator->getCommandFromResource($resource, 'destroy');

        $this->runBeforeCommands($command);

        $this->dispatchFrom($command, $request, [
            'modelClass' => $this->translator->getClassFromResource($resource),
            'id' => $id
        ]);

        $this->fireEventForResource($resource, 'destroy', $id);

        return $this->ok();
    }
public function destroy(Request $request, $resource, $id)
    {
        $command = $this->translator->getCommandFromResource($resource, 'destroy');

        $this->runBeforeCommands($command);

        $this->dispatchFrom($command, $request, [
            'modelClass' => $this->translator->getClassFromResource($resource),
            'id' => $id
        ]);

        $this->fireEventForResource($resource, 'destroy', $id);

        return $this->ok();
    }
Remove the specified resource from storage.

@param  Request $request
@param  string $resource
@param  int $id
@return \Response