Laravel Deploy Operations 7.x Help

Operation Helper

To quickly call operations from other code, you can use the OperationHelper helper function.

Execution of all

This will execute any operations not performed earlier:

use DragonCode\LaravelDeployOperations\Helpers\OperationHelper; OperationHelper::run();

For example,

2022_10_14_000001_test1 foo/2022_10_14_000002_test2 foo/2022_10_14_000003_test3 bar/2022_10_14_000004_test4 2022_10_14_000004_test5

Performing operations in a folder

This will execute all previously unexecuted operations in the specified folder:

use DragonCode\LaravelDeployOperations\Helpers\OperationHelper; OperationHelper::run('foo'); // also you can use a real path OperationHelper::run(__DIR__ . '/../foo', realpath: true);

For example,

foo/2022_10_14_000002_test2 foo/2022_10_14_000003_test3

Performing a specific operation

use DragonCode\LaravelDeployOperations\Helpers\OperationHelper; OperationHelper::run('foo/2022_10_14_000002_test2'); // or OperationHelper::run('foo/2022_10_14_000002_test2.php'); // also you can use a real path OperationHelper::run(__DIR__ . '/../foo/2022_10_14_000002_test2', realpath: true); // or OperationHelper::run(__DIR__ . '/../foo/2022_10_14_000002_test2.php', realpath: true);

For example,

foo/2022_10_14_000002_test2

Laravel Idea support

If you are using JetBrains PhpStorm with the Laravel Idea plugin installed, you can use the operation function to autocomplete.

operation helper
03 April 2025