protected function view($taskid) { $task = Task::whereId($taskid)->first(); return view('task.view', ['task' => $task]); }