0

it shows me error like this...

Symfony \ Component \ Debug \ Exception \ FatalErrorException (E_UNKNOWN) Maximum execution time of 60 seconds exceeded

.. I changed maximum execution time but it not works.. my route is this :

Route::get('download-invoice/{id}','InvoiceController@downloadPDF')->name('d-invoice');

the controller is :

public function downloadPDF($id){        
    $invoice = Student::join('admission_details','admission_details.ad_student','=','students.stu_id')->where('stu_id',$id)->first();
    $pdf = PDF::loadView('reports.invoice', compact('invoice'))->setPaper('a4')->setWarnings(false);
    return $pdf->download('Fee-Structure.pdf');  
}
Alon Eitan
  • 11,997
  • 8
  • 49
  • 58
Akshay
  • 1
  • 4

1 Answers1

0

ini find the maximum_execution_time and increase it.

Secondly, dont forget to restart the web server.

FULL STACK DEV
  • 15,207
  • 5
  • 46
  • 66