pdf-l4
pdf-l4 copied to clipboard
Internal Server Error 500
I've done everything the installation has asked but I get a Internal Server Error 500.
return dd(PDF::load($html, 'A4', 'portrait')->output());
The code is within a controller that a route uses. The page is just blank, but Inspect Element comes up with error 500.
I got the same error and when checked apache error logs, I saw:
PHP Fatal error: Call to undefined method Thujohn\\Pdf\\PdfFacade::load()
I found my mistake. In my case, I had app/config/local/app.php
with custom providers
array. That array was overriding my changes with providers array in app/config/app.php
(including new PDF service provider). So I wrapped array in local config with append_config()
. Hope it helps somebody.