Summer Sale! All accounts are 50% off this week.

GSherwin's avatar

domPDF on Laravel Vapor

When calling out for a domPDF download on laravel vapor, I get a 502 Gateway error. Same thing happens when I use TCPDF. The application works fine on localhost and when deployed to Heroku. Any ideas on how to generate a PDF file on laravel vapor? This is a huge issue.

0 likes
1 reply
GSherwin's avatar

I think I may have figured it out. You need to call domPDF from a controller. It does not work if called from Livewire.

Please or to participate in this conversation.