title: Laravel : How to get a file stored in storage/app/?
body: <p>I've been trying to store a file to (and get it from) <code>storage/app/</code>, following <a href="https://laravel.com/docs/5.4/filesystem#configuration" rel="noreferrer">the doc</a>.</p>
  
  <p>After I run <code>php artisan storage:link</code>, I can see that there is a link to the puiblic folder.</p>
  
  <p><a href="https://i.stack.imgur.com/ZGwBN.png" rel="noreferrer"><img src="https://i.stack.imgur.com/ZGwBN.png" alt=""></a></p>
  
  <p>If I put a file with the following code...</p>
  
  <pre><code>    Storage::put('/images/blah.png', $file);
  </code></pre>
  
  <p>...the storage will look like this.</p>
  
  <p><a href="https://i.stack.imgur.com/dPaip.png" rel="noreferrer"><img src="https://i.stack.imgur.com/dPaip.png" alt=""></a></p>
  
  <p>I'm not really sure if the link is working properly, since this <code>blah.png</code> can't be retrieved.</p>
  
  <p>So far, I've changed the access level of <code>storage</code> by <code>chmod -R 755 storage/</code>, and put the complete URL (<code>http://localhost:8000/storage/images/blah.png</code>. This is what <code>asset('storage/images/blah.png')</code> returns). Still, I'm getting 404 error (Not Found).</p>
  
  <p>In <code>config/filessystems.php</code>. the default is set to be <code>local</code>. (i.e. <code>'default' =&gt; 'local'</code>)</p>
  
  <p>Do you see anything I'm doing wrong?</p>
  
  <p>Any advice will be appreciated.</p>
  
  <p><strong>PS</strong></p>
  
  <p>This is how the configuration of the public disk looks like...</p>
  
  <pre><code>'public' =&gt; [
          'driver'     =&gt; 'local',
          'root'       =&gt; storage_path('app/public'),
          'url'        =&gt; env('APP_URL') . '/storage',
          'visibility' =&gt; 'public',
  ],
   //env('APP_URL').'/storage' returns 'root/storage/app/public'
  </code></pre>