/**
  * get the image of the user from Storage
  *
  * @param  int  $id
  * @return Response
  */
 public function getUserImage($id)
 {
     $user = User::findOrFail($id);
     $image = storage_path('uploads/user/' . $user->img_url);
     if ($user->img_url && file_exists($image)) {
         return response()->download($image, null, ['Cache-Control' => 'no-cache', 'Pragma' => 'no-cache'], 'inline');
     } else {
         return redirect("/iget-master/material-admin/imgs/user-image.jpg");
     }
 }
 /**
  * get the image of the user from Storage
  *
  * @param  int  $id
  * @return Response
  */
 public function getUserImage($id)
 {
     $image = User::findOrFail($id)->img_url;
     return response()->download(base_path($image), null, ['Chache-Control' => 'no-cache', 'Pragma' => 'no-cache'], 'inline');
 }