problem generating PDF from HTML

Posted in CategoryLaravel
  • Y
    Yuri 1 month ago
    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.

Please login or register to leave a response.

* You May Also Like Bellow Issue to check *