Package Data | |
---|---|
Maintainer Username: | Helldar |
Maintainer Contact: | helldar@dragon-code.pro (Andrey Helldar) |
Package Create Date: | 2020-12-02 |
Package Last Update: | 2024-10-28 |
Home Page: | https://deploy-operations.dragon-code.pro |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-11 15:09:11 |
Package Statistics | |
---|---|
Total Downloads: | 16,601 |
Monthly Downloads: | 5,320 |
Daily Downloads: | 121 |
Total Stars: | 226 |
Total Watchers: | 2 |
Total Forks: | 14 |
Total Open Issues: | 1 |
âš¡ Performing any actions during the deployment process
Create specific classes for a one-time or more-time usage, that can be executed automatically after each deployment. Perfect for seeding or updating some data instantly after some database changes, feature updates, or perform any actions.
This package is for you if...
composer require dragon-code/laravel-deploy-operations
Guidelines for upgrading from previous versions and dragon-code/laravel-migration-actions
and
dragon-code/laravel-actions
packages can be found in this section of the documentation.
📚 Read the full documentation at deploy-operations.dragon-code.pro.
Create your first operation using php artisan make:operation
console command and define the actions it should
perform.
use App\Models\Article;
use DragonCode\LaravelDeployOperations\Operation;
return new class extends Operation {
public function __invoke(): void
{
Article::query()
->lazyById(chunkSize: 100, column: 'id')
->each->update(['is_active' => true]);
// and/or any actions...
}
};
Next, you can run the console command to start operations:
php artisan operations
📚 Check out the full documentation to learn everything that Laravel Deploy Operations has to offer.
This project has gone the way of several names, and here are the number of downloads of each of them:
An upgrade section is available in the documentation for upgrading to a new version.
This package is licensed under the MIT License.