/**
  * Update the specified resource in storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function update(Request $request, $id)
 {
     // Store updated Entry in the database
     $entry = Entry::findOrNew($id);
     $entry->title = $request->input('title');
     // or $request->only('title', 'body');
     $entry->body = $request->input('body');
     $entry->save();
     // Initialise view parameters
     $params = ['title' => 'Updated Blog Entry', 'entry' => $entry];
     // Return the rendered view
     return view('blog.entry.update', $params);
 }