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');
}