I have the following set up:
In routes I have:
Route::get(\'articles\', \'ArticlesController@index\');
The index method in the controller is simply:<
In Laravel:
Add set_time_limit(0) line on top of query.
set_time_limit(0); $users = App\User::all();
It helps you in different large queries but you should need to improve query optimise.