Skip to main content
Back to packages
244 GitHub stars

TheDragonCode/laravel-deploy-operations

View on GitHub

Description

Performing any actions during the deployment process.

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

Recent Courses on Laravel Daily

Next.js Basics for Laravel Developers

11 lessons
58 min

Laravel 13 Eloquent: Expert Level

41 lessons
1 h 34 min

How to Build Laravel 13 API From Scratch

30 lessons
1 h 23 min

We'd Love Your Feedback

Tell us what you like or what we can improve

Feel free to share anything you like or dislike about this page or the platform in general.