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