Laravel Deploy Operations 7.x Help

Artisan Commands

Quite often, when working with operations, it becomes necessary to run one or another console command, and each time you have to write the following code:

use DragonCode\LaravelDeployOperations\Operation; return new class extends Operation { public function __invoke(): void { $this->artisan('some_command', [ // parameters ]); } };
02 April 2025