/**
  * Display a listing of timeslots
  *
  * @return Response
  */
 public function index()
 {
     $timeslots = Timeslot::all();
     return View::make('timeslots.index', compact('timeslots'));
 }
示例#2
0
 public function getAllslot()
 {
     $timeslot = Timeslot::all();
     return Response::json($timeslot);
 }