/**
  * Display the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function show($id)
 {
     $photo = Photo::findOrFail($id);
     $storagePath = \Storage::disk('local')->getDriver()->getAdapter()->getPathPrefix();
     $url = $storagePath . $photo->image_url;
     $photo->image_url = $url;
     $data = ['photo' => $photo];
     return view('photo.show', $data);
 }
 /**
  * Display the specified resource.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function show($id)
 {
     $photo = Photo::findOrFail($id);
     $content = Storage::disk('s3')->get($photo->filename);
     return (new Response($content, 200))->header('Content-Type', $photo->mime);
 }