public function destroy(Request $request, $id) { $task = $this->tasks->forUserById($request->user(), $id); $this->authorize('destroy', $task); $task->delete(); return redirect('/tasks'); }