title: Downloading File error in laravel
body: <p>I have used local storage for file storing. I have created table of file, in which <strong>title, path, card_id</strong> rows stored.</p>
  
  <pre><code>$request-&gt;file('file')-&gt;storeAs('public/upload',$files-&gt;getClientOriginalName());
  </code></pre>
  
  <p>i.e:<strong>passport.png</strong> stored at <em>/home/dhruv/MyProject/storage/app/public/upload/passport.png</em></p>
  
  <p>Above works fine but I'm getting error while downloading file.
  in controller...</p>
  
  <pre><code>    public function getDownload($file_id)
      {
  
          $file = File::find($file_id);
          //print_r($file);    
              return response()-&gt;download($file-&gt;path);
               /*  return response()-&gt;download(
                  $file-&gt;path,
                      $file-&gt;name,
                      [],
                      'inline'//attachment
                  );*/
  
      }
  </code></pre>
  
  <p>I tried many downloading methods but any didn't work fine.
  I am getting this error.</p>
  
  <blockquote>
    <p><em>Symfony\Component\HttpFoundation\File\Exception\FileNotFoundException:
    The file
    &quot;/home/dhruv/MyProject/storage/public/upload/passport.png&quot;
    does not exist in file
    /home/dhruv/MyProject/vendor/symfony/http-foundation/File/File.php on
    line 37</em></p>
  </blockquote>
  
  <p>I dont know why it is searching at <strong>/home/dhruv/MyProject/vendor/symfony/http-foundation/File/File.php</strong> since i have inserted correct path.</p>
  
  <p>So suggest any method for downloading ..</p>