laravel-dompdf: HTTP Error 500
I just wanted to test everything, so passing a simple view with no variables:
`public function pdf($invoice) { $pdf = PDF::loadView(‘pages.home’); return $pdf->download(‘invoice.pdf’);
}`
However, when I go to the page, all I get is a 500 error. Any idea where I’m going wrong? I’m running laravel 5.1,
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 18 (1 by maintainers)
ini_set(‘max_execution_time’, 300); ini_set(“memory_limit”,“512M”);
this works for me
someone found some solution to this error ?
Well then your PDF is to large. Add ini_set(‘max_execution_time’, 300); above your function
@keiwerkgvr Thanks Buddy It’s Work for me also…
For me worked this way:
XisController.php
pdf/test.blade.php