How to solve a timeout error in Laravel 5

后端 未结 13 2173
说谎
说谎 2020-11-30 08:43

I have the following set up:

In routes I have:

Route::get(\'articles\', \'ArticlesController@index\');

The index method in the controller is simply:<

13条回答
  •  一向
    一向 (楼主)
    2020-11-30 08:56

    If you are hosting your Laravel app on Heroku, you can create custom_php.ini in the root of your project and simply add max_execution_time = 60

提交回复
热议问题