Пример #1
0
 public function showCalendar()
 {
     $medics = Medic::orderBy('name')->get();
     return view("shedulle.dayOfCalendar", compact('medics'));
 }
Пример #2
0
 public function listAllMedics()
 {
     $medics = Medic::orderBy('name')->get();
     return response()->json($medics);
 }