title: Deleting files after download in laravel
body: <p>I'm creating a application that lets a user download a file. After the download i want the file to be deleted. The end of my code is like this:</p>
  
  <pre><code>return Response::download(public_path() . '/uploads/_tmp/' . urldecode($filename));
  </code></pre>
  
  <p>which means that the function ends on the return an i am not able to delete the file. I have tried to call a 'after' filter on the route but then the file gets deleted to quickly.</p>
  
  <p>Any ideas?</p>