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