public function getTasks($id)
 {
     $tasks = Task::project($id)->get();
     return $tasks;
 }
 /**
  *  Get just one task for a particular Project
  * @param  [type] $projectId [description]
  * @param  [type] $taskId    [description]
  * @return [type]            [description]
  */
 public function getOneProjectTask($projectId, $taskId)
 {
     $task = Task::where('project_id', $projectId)->where('id', $taskId)->first();
     return view('tasks.edit')->withTask($task)->with('projectId', $projectId);
 }