title: How to secure Laravel Storage folders
body: <p>In my project, I have implemented auth and ACL for my controllers and routes. I have a file upload system accessible only if the user is logged. It's work fine.</p>
  
  <p>My problem is on the uploaded files. The user can access any file if have a file URL. How I can implement auth on uploaded files?</p>
  
  <p>I tried with routes, but when accessing my file through the browser the file is shown as if not have a route intercepting this URL.</p>
  
  <p>I have used this code:</p>
  
  <pre><code>Route::get('/storage/document/3/4a15c1ab060be8f35.png', function () {
    return 'ok';
  });
  </code></pre>
  
  <p>How can I implement auth on specific folders on storage? Thanks!</p>