title: Laravel response()->download(), not working correctly
body: <p>Why is this part of code is wrong ?  <code>foreach</code> loop in directory with-&gt; file names and sizes and download link for each file.</p>
  <p>When i ispect download button in chrome i got this in development tool:</p>
  <pre><code>&lt;a href=&quot;#&quot; class=&quot;btn btn-sm btn-outline-primary btn-block btn-login text-uppercase mb-2&quot; 
      download=&quot;HTTP/1.0 200 OK
      0: Content-Type: application/octet-stream
      Cache-Control:       public
      Content-Disposition: attachment; filename=testfile.pdf;
      Date:                Fri, 27 Nov 2020 13:58:31 GMT
      Last-Modified:       Fri, 27 Nov 2020 13:58:31 GMT
   &quot;&gt;Download&lt;/a&gt;
  </code></pre>
  <p>when it the button i download file with name :</p>
  <pre><code>HTTP_1.0 200 OK_0_Content-Type_ application_octet-stream_Cache-Control_public_.pdf__Date_                
     Fri, 27 Nov 2020 13_58_31 GMT_Last-Modified_Fri, 27 Nov 2020 13_58_31 GMT__    
  </code></pre>
  <p>insteed of <code>testfile.pdf</code></p>
  <p><code>code</code></p>
  <pre><code>   foreach($filesDownloadPath as $path) {
  
      $filesDownloads = pathinfo($path)['basename'];
      $filesDownloadSize = ConvertFileSize::ConversionFile(filesize($path));
      $downloadLink = response()-&gt;download(storage_path('app/Files/'.$filesDownloads), $filesDownloads, 
            $headers);
      }
  
      return view('page',[&quot;$filesDownloads&quot; =&gt; 'fileDownloads',
                          &quot;$filesDownloadSize&quot; =&gt; 'filesDownloadSize',
                          &quot;$downloadLink&quot; =&gt; 'downloadLink'
      ]);
   
  </code></pre>
  <p>is problem with varibale <code>$downloadLink</code> ? with <code>response()-&gt;download()</code> ?</p>
  <p><code>blade</code></p>
  <pre><code>@foreach($filesDownloadPath as $path) 
      &lt;tr&gt;
          &lt;td&gt;{{ $filesDownloads }}&lt;/td&gt;
          &lt;td&gt;{{ $filesDownloadSize}}&lt;/td&gt;
          &lt;td&gt;&lt;a href=&quot;#&quot; class=&quot;btn btn-sm btn-outline-primary btn-block btn-login text-uppercase mb-2&quot; download='{{ $downloadLink }}'&gt;Download&lt;/a&gt;&lt;/td&gt;
      &lt;/tr&gt;
  @endforeach
  </code></pre>