I need a file to download when a form is submitted, however I also want to have the page redirect back to the form with a "form submitted" message.
Obviously something like this wont work:
return Redirect::to('form')->with('sent', true);
$downloadLink = base_path().'/something.pdf';
return Response::download($downloadLink);
Is there a way to do this?
Thanks!