Laravel Deploy Operations 7.x Help

Upgrading To 7.x from 6.x

High-Impact Changes

Minor-Impact Changes

  1. Laravel 10 is now unsupported

  2. Removed `operations:upgrade` console command

  3. Removed `operations:refresh` console command

  4. Removed `operations:reset` console command

Low-Impact Changes

  1. Added suffixes for classes

  2. Renamed traits

  3. Replaced `ConfigHelper` with `ConfigData`

  4. Replaced `dragon-code/simple-dto` with `spatie/laravel-data `

Updating Dependencies

You should update the following dependencies in your application's composer.json file:

{ "require": { "dragon-code/laravel-deploy-operations": "^7.0" } }

Then you need to update the dependencies:

composer update

Laravel 10 is now unsupported

Laravel 10 version is no longer supported due to the lack of event classes required for Deploy Operations.

Removed `operations:upgrade` console command

We decided to drop support for the php artisan operations:upgrade console command. It does not exist now.

Removed `operations:refresh` console command

We decided to drop support for the php artisan operations:refresh console command. It does not exist now.

Removed `operations:reset` console command

We decided to drop support for the php artisan operations:reset console command. It does not exist now.

Strict typification

A strict typification has been added to all the project files.

declare(strict_types=1);

Replaced `ConfigHelper` with `ConfigData`

The DragonCode\LaravelDeployOperations\Helpers\ConfigHelper class has been removed and DragonCode\LaravelDeployOperations\Data\Config\ConfigData, which is a Data object, is now used instead.

For example,

- $this->config->path('some'); // /operations/some - config('deploy-operations.transactions.enabled'); // false - config('deploy-operations.async'); // false + $this->config->path . 'some'; // /operations/some + $this->config->transactions->enabled; // false + $this->config->async; // false

Replaced `dragon-code/simple-dto` with `spatie/laravel-data `

This tidied up the handling of settings and options.

If you used a direct reference to the Helpers/Config and Values/Options classes, update your code.

Added suffixes for classes

Commands\Install Commands\Make Commands\Operations Commands\Fresh Commands\Rollback Commands\Status Processors\Fresh Processors\Install Processors\Make Processors\Operations Processors\Rollback Processors\Status Helpers\Config Helpers\Git Helpers\Sorter Services\Migrator Services\Mutex Values\Options
Commands\InstallCommand Commands\MakeCommand Commands\OperationsCommand Commands\FreshCommand Commands\RollbackCommand Commands\StatusCommand Processors\FreshProcessor Processors\InstallProcessor Processors\MakeProcessor Processors\OperationsProcessor Processors\RollbackProcessor Processors\StatusProcessor Data\Config\ConfigData Helpers\GitHelper Helpers\SorterHelper Services\MigratorService Services\MutexService Data\OptionsData

Renamed traits

Concerns\About Concerns\Artisan Concerns\Isolatable Concerns\Optionable
Concerns\HasAbout Concerns\HasArtisan Concerns\HasIsolatable Concerns\HasOptionable

Removed deprecated methods and properties

The following properties and methods have been removed from the DragonCode\LaravelDeployOperations\Operation class:

protected bool $once protected array|string | null $environment protected array|string | null $exceptEnvironment protected bool $before public function getConnection(): ?string public function isOnce(): bool public function enabledTransactions(): bool public function transactionAttempts(): int public function onEnvironment(): array public function exceptEnvironment(): array public function allow(): bool public function hasBefore(): bool public function isAsync(): bool
protected bool shouldOnce(): bool protected bool shouldRun(): bool protected bool shouldRun(): bool protected bool needBefore(): bool Not used protected bool shouldOnce(): bool public function withinTransactions(): bool It is indicated in the settings protected bool shouldRun(): bool protected bool shouldRun(): bool protected bool shouldRun(): bool protected bool needBefore(): bool protected bool needAsync(): bool
03 April 2025