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

New Name

Old Name

Commands\InstallCommand

Commands\Install

Commands\MakeCommand

Commands\Make

Commands\OperationsCommand

Commands\Operations

Commands\FreshCommand

Commands\Fresh

Commands\RollbackCommand

Commands\Rollback

Commands\StatusCommand

Commands\Status

Processors\FreshProcessor

Processors\Fresh

Processors\InstallProcessor

Processors\Install

Processors\MakeProcessor

Processors\Make

Processors\OperationsProcessor

Processors\Operations

Processors\RollbackProcessor

Processors\Rollback

Processors\StatusProcessor

Processors\Status

Helpers\GitHelper

Helpers\Git

Helpers\SorterHelper

Helpers\Sorter

Services\MigratorService

Services\Migrator

Services\MutexService

Services\Mutex

Values\OptionsData

Values\Options

Renamed traits

New Name

Old Name

Concerns\HasAbout

Concerns\About

Concerns\HasArtisan

Concerns\Artisan

Concerns\HasIsolatable

Concerns\Isolatable

Concerns\HasOptionable

Concerns\Optionable

Removed deprecated methods and properties

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

Removed

Use Instead

protected bool $once

protected bool shouldOnce(): bool

protected array|string|null $environment

protected bool shouldRun(): bool

protected array|string|null $exceptEnvironment

protected bool shouldRun(): bool

protected bool $before

protected bool needBefore(): bool

public function getConnection(): ?string

Not used

public function isOnce(): bool

protected bool shouldOnce(): bool

public function enabledTransactions(): bool

public function withinTransactions(): bool

public function transactionAttempts(): int

It is indicated in the settings

public function onEnvironment(): array

protected bool shouldRun(): bool

public function exceptEnvironment(): array

protected bool shouldRun(): bool

public function allow(): bool

protected bool shouldRun(): bool

public function hasBefore(): bool

protected bool needBefore(): bool

public function isAsync(): bool

protected bool needAsync(): bool

Last modified: 02 April 2025