Level 2
I think I may have figured it out. You need to call domPDF from a controller. It does not work if called from Livewire.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
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.
Please or to participate in this conversation.