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