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