예제 #1
0
 public function getTasks()
 {
     $department_id = $_GET['department_id'];
     $tasks = json_encode(Departments::find($department_id)->tasks);
     return $tasks;
 }
 public function dept($id)
 {
     $dept = Departments::find($id);
     return view("department.show", compact('dept'));
 }