title: How to set the filename for a downloadable file in laravel?
body: <p>Hi i want to rename the a file that can be downloaded from the website.</p>
  
  <p>This is how i populate the response.</p>
  
  <pre><code>return response()-&gt;view('ordersxml.order-template',compact('order','debtor','today'))-&gt;header('Content-Type','text/xml')-&gt;header('Content-disposition','attachment')-&gt;header('filename','test');
  </code></pre>
  
  <p>The <code>-&gt;header('filename','test');</code></p>
  
  <p>Is not working.
  What am i doing wrong?</p>
  
  <p>THanks in advance</p>