title: laravel 9 donwloading pdf
body: <p>I have this element:</p>
  <p>view:</p>
  <pre><code>&lt;li&gt;&lt;a href=&quot;{{route('front.download')}}&quot; target=&quot;_blanck&quot;&gt;Download PDF&lt;/a&gt;&lt;/li&gt;
  </code></pre>
  <p>controller:</p>
  <pre><code>public function download(){
      $document = Documents::first();
      return response()-&gt;download(url('uploads/documents/'.$document-&gt;filename));
  
  }
  </code></pre>
  <p>I'm having this issue:</p>
  <pre><code>The file &quot;http://127.0.0.1:8000/uploads/documents/1-1654548555.pdf&quot; does not exist
  </code></pre>
  <p>I checked the directory uploads/documents and the file 1-1654548555.pdf exist, what is wrong?</p>