/** * Store a newly created timeslot in storage. * * @return Response */ public function store() { $validator = Validator::make($data = Input::all(), Timeslot::$rules); if ($validator->fails()) { return Redirect::back()->withErrors($validator)->withInput(); } Timeslot::create($data); return Redirect::route('timeslots.index'); }