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