title: Laravel 5.4 Showing 404 Not Found (Public Storage)
body: <p>I have a question regarding to public storage and storage itself</p>
  <p>After i done inserting the files to the storage.
  then in the views page i want to display the files that i store to the storage.
  but i got problem i got error.</p>
  <p><strong>Failed to load resource: the server responded with a status of 404 (Not Found)</strong></p>
  <ul>
  <li>I've run php artisan storage:link</li>
  <li>The image exists in the public storage folder</li>
  </ul>
  <p><a href="https://i.stack.imgur.com/nDLum.jpg" rel="nofollow noreferrer">Image Exist in the public storage folder &amp; I've run the php artisan storage link</a></p>
  <p><strong>This is my code, how can i insert the file to storage.</strong></p>
  <pre><code>$filename =  $request-&gt;file-&gt;getClientOriginalName();
  $request-&gt;file-&gt;storeAs('storage',$filename); 
  </code></pre>
  <p><strong>This is my code, how to display the image to the view page</strong></p>
  <pre><code>@foreach($home_slider as $get_data_slider)
     @if($get_data_slider-&gt;slider_sorting == '1')
                  
        &lt;a href=&quot;{{$get_data_slider-&gt;link}}&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;{{ asset('/public/storage/'.$get_data_slider-&gt;file.'') }}&quot; class=&quot;d-block w-100&quot;&gt;&lt;/a&gt;
                  
      @endif
  @endforeach
  </code></pre>
  <p>I found out that i can't access the localhost:8000/public/storage/1.jpg</p>
  <p><a href="https://i.stack.imgur.com/Lmo4s.jpg" rel="nofollow noreferrer">404 not found</a></p>
  <p>But when i use the localhost:8000/storage/1.jpg the file is showing.
  <a href="https://i.stack.imgur.com/vCWVH.jpg" rel="nofollow noreferrer">Showing image when the url is without public</a></p>
  <p>Thanks..</p>