Laravel Deploy Operations 7.x Help

Usage

Creating Operation

To create an operation use the make:operation artisan command:

php artisan make:operation some_name

The new operation's file will be placed in your /operations directory in the base path of your app.

Each operation file name contains a timestamp, which allows Laravel to determine the order of the operations. For example,

2025_04_02_121627_some_name.php

Running Operation

To run all of your outstanding operations, execute the operations artisan command:

php artisan operations

The order in which operations are called is checked by file name in alphabetical order, without taking into account directory names:

# actual file names 2022_10_14_000001_test1 # 1 2022_10_14_000004_test4 # 4 bar/2022_10_14_000003_test3 # 3 foo/2022_10_14_000002_test2 # 2
# order of running operations at startup 2022_10_14_000001_test1 # 1 foo/2022_10_14_000002_test2 # 2 bar/2022_10_14_000003_test3 # 3 2022_10_14_000004_test4 # 4
02 April 2025