Where to set ini_set in laravel?

Updated at 09-Aug-2022, By samar

Where to set ini_set in laravel?

With this article, we will examine several different instances of how to solve the "Where to set ini_set in laravel?".

I want to use the set ini_set method in my laravel to perform an operation which takes extra execution time in a script. Where to set the ini_set method in laravel.
  • app\Http\Controllers<HomeController>.php

    public function getUsers() { 
        ini_set('max_execution_time', 0); // 0 = Unlimited 
        $users = App\Models\User::get();

    Use ini_set at the beginning of the specific function at Controller. Which set the execution time unlimited.

Back to code snippet queries related laravel