How to solve a timeout error in Laravel 5

后端 未结 13 2163
说谎
说谎 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:54

    set time limit in __construct method or you can set in your index controller also where you want to have large time limit.

    public function __construct()
    {
        set_time_limit(8000000);
    }
    

提交回复
热议问题