title: Retrieving image stored in storage folder
body: <p>Using laravel 5.3, I am trying to retrieve an image in a view. How I could do this?
  folder structure: storage/app/avatard</p>
  
  <p>Here is the code:</p>
  
  <pre><code>public function storeAvatar(Request $request, $username)
  {
    $user = User::where('name', $username)-&gt;first();
    $avatar = $request-&gt;file('avatar')-&gt;store('avatars');
  
    $avatar = explode('avatars/', $avatar);
  
  
  
    $user-&gt;user_setting()-&gt;updateOrCreate(
      ['user_id' =&gt; $user-&gt;id],
      ['avatar' =&gt; $avatar[1]]
    );
  
    return back();
  }
  </code></pre>
  
  <p>This is how the image path is saved in the database:</p>
  
  <blockquote>
    <p>/users/avatar/default.png</p>
  </blockquote>