<?php ... /** * Update the specified resource in storage. * * @param BlogRequest $request * @param int $id * @return Response */ public function update(BlogRequest $request, $id) { try{ $blog = Blog::findOrFail($id); }catch (\Exception $e) { return \Redirect::back(); } // Update $blog->name = $request->get('name'); Session::flash('message', 'Successfully updated blog!'); return \Redirect::route('blog.index'); } ...