I've been testing the tutorial Laravel 5.7 - Generate PDF from HTML Example
but I need to send more data for the view
$category = DB::table('categorys')->get();
$pdf = PDF::loadView('category.index', compact('category'));
return $pdf->download('itsolutionstuff.pdf');
the page never loads and it gives me the following error: PHP Fatal error:
Maximum execution time of 60 seconds exceeded in C:\xampp\htdocs\calidad\vendor\dompdf\dompdf\src\Helpers.php on line 506
How can I generate a pdf of a view that receives several data?
Thanks in advance.