public function open(Project $project) { $tasktype = TaskType::orderBy('typename')->where('project_id', $project->id)->lists('typename', 'typename'); //dd($tasktype); return view('projects.open', compact('project', 'tasktype')); }