public function GetTimeForTask($id) { $taskstime = Tasks::findOrFail($id); $taskstime->allTime; return $taskstime; }