/**
  * Update the specified resource in storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function update(EventsRequest $request, $id)
 {
     //Find the event
     $event = Event::find($id);
     //Fill up with the new informations
     $event->fill($request->all());
     $event->date = new Carbon($request->input('date'));
     //If the user changed the image.
     if ($request->hasFile('image')) {
         //Delete the old member image from the filesystem
         File::delete($event->path);
         //Moves and sets the new uploaded image
         $this->imageHelper->uploadImage($request, $event);
     }
     //Save the changes
     $event->save();
     //Sending the user to the event page
     return redirect()->route('event/index');
 }