Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

🚀 Performing any actions during the deployment process

License

NotificationsYou must be signed in to change notification settings

TheDragonCode/laravel-deploy-operations

Repository files navigation

the dragon code laravel deploy operations

Stable VersionTotal DownloadsGithub Workflow StatusLicense

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 anyactions.

This package is for you if...

  • you regularly need to update specific data after you deploy new code
  • you often perform jobs after deployment
  • you sometimes forget to execute that one specific job and stuff gets crazy
  • your code gets cluttered with jobs that are not being used anymore
  • your co-workers always need to be reminded to execute that one job after some database changes
  • you often seed or process data in a migration file (which is a big no-no!)

Installation

To get the latest version ofDeploy Operations, simply require the project usingComposer:

composer require dragon-code/laravel-deploy-operations

Documentation

📚Check out the full documentation to learn everything that Laravel Deploy Operations has to offer.

Basic Usage

Create your first operation usingphp artisan make:operation console command and define the actions it shouldperform.

useApp\Models\Article;useDragonCode\LaravelDeployOperations\Operation;returnnewclassextends Operation {publicfunction__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

Downloads Stats

This project has gone the way of several names, and here are the number of downloads of each of them:

License

This package is licensed under theMIT License.

Sponsor this project

    Contributors11

    Languages


    [8]ページ先頭

    ©2009-2025 Movatter.jp