/**
  * Update the specified resource in storage.
  *
  * @param \Illuminate\Http\Request $request
  * @param int                      $id
  *
  * @return \Illuminate\Http\Response
  */
 public function update(WorksRequest $request, $id)
 {
     // Get the existing entry
     $work = Work::findOrFail($id);
     // Update entry
     $work->update($request->all());
     // Save work photos
     $this->savePhotos($request, $work);
     /*
      * Redirect to works route with session
      * of the updated entry
      */
     return redirect()->route('dash.works')->with(['flash_entry_updated' => true, 'flash_entry_id' => $work->id, 'flash_entry_title' => $work->title, 'flash_entry_route' => 'dash.works.edit']);
 }