Where to set ini_set in laravel?

Created 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

If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.

Buy Me A Coffee

Don't forget to share this article! Help us spread the word by clicking the share button below.

We appreciate your support and are committed to providing you valuable and informative content.

We are thankful for your never ending support.