Support the ongoing development of Laravel.io →
posted 7 years ago
Views
Last updated 2 years ago.
0

I think redirect tells the browser to redirect aka make anew request. So when eturn $pdf->download('po.pdf') is returned, PHP is no longer running.

What do you want to achieve? Do you want to show iew('purchaseOrders.poCreate', compact('variables');' as PDF?

or download pdf file, then take user to order form? Other way around could work by using javascript. But would not make much sense

Last updated 7 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

ksarff ksarff Joined 22 Feb 2017

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.