/**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function destroy($user, $id)
 {
     $image = Image::where(['id' => $id, 'user_id' => $user]);
     if (count($image->get()->toArray()) > 0) {
         if (count(Comment_image::find($id)) > 0) {
             Comment_image::where('image_id', $id)->delete();
         }
         if (unlink(public_path() . '/' . $image->get()->first()->fullsize_url) && $image->delete()) {
             return redirect()->route('photo.index', $user)->with(['message' => 'The image has been delete.']);
         }
     }
     return redirect()->route('photo.index', $user)->withErrors('The image does not exists.');
 }