/** * Update the specified resource in storage. * * @param int $id * @return Response */ public function postUpdate($id) { $validator = Validator::make($data = Input::all(), $this->actionhandler->comment_rules()); if ($validator->fails()) { return Redirect::back()->withErrors($validator)->withInput(); } $this->actionhandler->comment_edit($id, $data); return Redirect::action('Alexwenzel\\LaravelCommentary\\ManagementController@getIndex'); }