/** * Store a newly created concepto in storage. * * @return Response */ public function store() { $validator = Concepto::Validator(Input::all()); if ($validator->fails()) { return Redirect::back()->withErrors($validator)->withInput(); } Concepto::create(Input::all()); Session::flash('message', 'Guardado Correctamente'); Session::flash('class', 'success'); return Redirect::to('/dashboard/conceptos'); }