title: How to fix 'The file .... does not exist in Laravel?
body: <p>I want to download file from storage folder in my Laravel project.</p>
  
  <p>This is the method I'm using to download the file:</p>
  
  <pre><code>return response()-&gt;download(storage_path($path), $name);
  </code></pre>
  
  <p>When I click the link which redirects to this method I receive this output from the browser:</p>
  
  <blockquote>
    <p>Symfony\Component\HttpFoundation\File\Exception\FileNotFoundException
    The file "pathToTheFile" does not exist.</p>
  </blockquote>
  
  <p>The problem is that when I go to www.mydomain.com/pathToTheFile, the browser shows me this txt file. Why doesn't it download the file from the link? Anyone can help?</p>
  
  <p>The file is uploaded using Voyager Admin Package if it's important.</p>