title: Laravel Retrieve Images from storage to view
body: <p>I am using below code to store the uploaded file</p>
  
  <pre><code> $file = $request-&gt;file($file_attachment);
          $rules = [];
          $rules[$file_attachment] = 'required|mimes:jpeg|max:500';
          $validator = Validator::make($request-&gt;all(), $rules);
          if ($validator-&gt;fails()) {
              return redirect()-&gt;back()
                  -&gt;with('uploadErrors', $validator-&gt;errors());
          }
  
          $userid = session()-&gt;get('user')-&gt;id;
          $destinationPath = config('app.filesDestinationPath') . '/' . $userid . '/';
          $uploaded = Storage::put($destinationPath . $file_attachment . '.' . $file-&gt;getClientOriginalExtension(), file_get_contents($file-&gt;getRealPath()));
  </code></pre>
  
  <p>The uploaded files are stored in <strong>storage/app/2/filename.jpg</strong></p>
  
  <p>I want to show back the user the file he uploaded. How can i do that?</p>
  
  <p>$storage = Storage::get('/2/filename.jpg');</p>
  
  <p>I am getting unreadable texts. I can confirm that the file is read. But how to show it as an image to the user.</p>
  
  <p>Hope i made my point clear.</p>
  
  <p><strong>Working Solution</strong></p>
  
  <p>display.blade.php</p>
  
  <pre><code>&lt;img src="{{ URL::asset('storage/photo.jpg') }}" /&gt;
  </code></pre>
  
  <p>web.php</p>
  
  <pre><code>Route::group(['middleware' =&gt; ['web']], function () {
      Route::get('storage/{filename}', function ($filename) {
          $userid = session()-&gt;get('user')-&gt;id;
          return Storage::get($userid . '/' . $filename);
      });
  });
  </code></pre>
  
  <p>Thanks to: @Boghani Chirag and @rkj</p>