/** * Update the specified savingposting in storage. * * @param int $id * @return Response */ public function update($id) { $savingposting = Savingposting::findOrFail($id); $validator = Validator::make($data = Input::all(), Savingposting::$rules); if ($validator->fails()) { return Redirect::back()->withErrors($validator)->withInput(); } $savingposting->update($data); return Redirect::route('savingpostings.index'); }