I tried to save the generated pdf in public folder using laravel 5.2 but it is not working, below is my code:
$path = base_path('public/uploads/files/');
$pdf_name = time().'.pdf';
PDF::loadView('pdf.pdf', [ 'data' => $data ])->save($path.$pdf_name);
This is the error I got:
FatalErrorException in WindowsPipes.php line 137: Maximum execution time of 60 seconds exceeded