コード例 #1
0
 /**
  * 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);
 }