Laravel Executor v2.1.0
Laravel Executor v2.1.0
New Features
Added a timeOut option for the Artisan and external commands (#14)
As of Laravel Executor v2.1.0, you can now explicitly define the timeout for the process running your command. For example, to set the timeout for non-interactive external and Artisan commands to be 30 seconds, you could use the following:
<?php
namespace App\Executor;
use AshAllenDesign\LaravelExecutor\Classes\Executor;
class AppUpdate extends Executor
{
public function run(): Executor
{
return $this->runExternal('composer install', false, 30)->runArtisan('cache:clear', false, 30);
}
}