Thursday, October 4, 2018

How to increase laravel controller method execution time



public function postGetEvents1(){

    // Get default limit
    $normalTimeLimit = ini_get('max_execution_time');

    // Set new limit
    ini_set('max_execution_time', 600); 

    //other code

    // Restore default limit
    ini_set('max_execution_time', $normalTimeLimit); 

    return;
}

No comments:

Post a Comment