use IBroStudio\CommandPool\Concerns\HasCommandPool;
class MyContractorCommand extends Command
{
use HasCommandPool;
public function handle(): int
{
return $this->commandPool([
Command1::class,
Command2::class,
])->run();
//or
return $this->commandPool([
Command1::class,
Command2::class => ['title' => 'tata'],
])->runWith(['name' => $this->argument('name')]);
}
use IBroStudio\CommandPool\CommandPool;
CommandPool::pool([
Command1::class => ['runIf' => fn (): bool => false],
Command2::class,
])->run() // will run only Command2
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.