laravel return pdf download but still want to redirect
<p>I'd like to ask if anyone knows any way to redirect an user if a return has already been send.</p>

<p>In my case I try to accomplish the following. A pdf is generated and send by the browser as a download. But after it's being send I'd still like to redirect because the database records will be updated in the process. </p>

<p>my code in the controller is as below:</p>

<pre><code>session::flash('informationmessage', 'The labour entries were billed');
        return $pdf-&gt;download();
        redirect('admin/customers');
</code></pre>

<p>any help would be appreciated, cheers</p>