How to solve Maximum execution time of 60 seconds exceeded in Laravel without changeing into php.ini

618 Views Asked by At

I have a problem with my code where I have to export CSV which has more than 100,000 data. But I am getting error like "Maximum execution time of 60 seconds exceeded".

I can not access to php.ini. Is it possible to to solve the issue without changing max_execute_time on php.ini ?

Yes, I can optimize code but I need to know, Is there any way to set ini_set('max_execution_time', $amountOfTime) in a single common place so that it will impact into whole laravel project?

1

There are 1 best solutions below

1
Wakil Ahmed On

You may do this:

ini_set('max_execution_time', 300);