定制 akempes/laravel-mutations 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

akempes/laravel-mutations

最新稳定版本:1.0.3

Composer 安装命令:

composer require akempes/laravel-mutations

包简介

Manage commands/code that should only run once like migrations

README 文档

README

Manage commands/code that should only run once like migrations. Ideal to perform mutations to your existing database during CI/CD pipelines.

Installation

  1. Install the package
    php composer require akempes/laravel-mutations
    
  2. Add the package service provider to providers section in your ./config/app.php file.
    'providers' => [
    ...
    Akempes\Mutations\MutationsServiceProvider::class,
    ...
    ],
    
  3. (Optional) Publish the config file if you need to change the default table name 'mutations'.
    php artisan vendor:publish --provider="Akempes\Mutations\MutationsServiceProvider"
    
  4. Create the mutations repository
    php artisan mutate:install
    

How to use

Just like a migration, create a mutation:

php artisan make:mutation MyFirstMutation

The mutation files are created in the database/mutations/ directory. Each mutation has an up() and down() method just like a migration.

To run your mutations:

php artisan mutate

And rollback:

php artisan mutate:rollback

统计信息

  • 总下载量: 589
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 6
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-08-21

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固