title: Download a file from S3 - Laravel 5.7
body: <p>Im trying to download files from amazon s3, and the code here works for files like docx, pdf etc... But for images, it just open a new tab, and shows the image there, no download started.</p>
  
  <pre><code>function downloadLink($docpath)
  {
      $s3 = \Storage::disk('s3');
  
      return $s3-&gt;url($docpath);
  }
  </code></pre>
  
  <p>I replaced the url method with download, but that dont work at all, it says err 404 page not found.</p>
  
  <p>Best regards</p>