承接 signifly/laravel-database-refactors 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

signifly/laravel-database-refactors

最新稳定版本:v1.4.2

Composer 安装命令:

composer require signifly/laravel-database-refactors

包简介

Add database refactors to your Laravel app.

README 文档

README

Latest Version on Packagist Build Status StyleCI Quality Score Total Downloads

The signifly/laravel-database-refactors package allows you to easily add database refactors to your Laravel app.

Below is a small example of how to use it.

Run the refactor in terminal:

php artisan db:refactor --class="UsersTableRefactor"

or programatically in a migration:

// use Illuminate\Support\Facades\Artisan;
Artisan::call('db:refactor', [
    '--class' => 'UsersTableRefactor',
]);

IMPORTANT! Update your composer.json file in order to autoload the database refactors:

    "autoload": {
        "classmap": [
            "database/seeds",
            "database/factories",
            "database/refactors"
        ],
        "psr-4": {
            "App\\": "app/"
        }
    },

Installation

You can install the package via composer:

composer require signifly/laravel-database-refactors

The package will automatically register itself.

Basic Usage

In order to generate a new refactor file, you may use the following command:

php artisan make:refactor UsersTableRefactor

The file will be located in the database/refactors folder.

Testing

composer test

Security

If you discover any security issues, please email dev@signifly.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

  • Stars: 24
  • Watchers: 5
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-05-18