定制 matt127127/laravel-migration-paths 二次开发

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

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

matt127127/laravel-migration-paths

最新稳定版本:v1.20

Composer 安装命令:

composer require matt127127/laravel-migration-paths

包简介

Multiple migration paths for Laravel projects.

README 文档

README

By matt127127

During the periodical development phase the migrations folder may become very large. It is very helpful if we can organize the content of the migration folders. This library helps to organize migration files in different folders.

Installation:

Use Composer to install the library.

composer require matt127127/laravel-migration-paths

After updating composer, add the service provider to the providers array in config/app.php

matt127127\MigrationPath\ServiceProvider::class,

Laravel 5.5 uses Package Auto-Discovery, so does not require you to manually add the ServiceProvider.

Usage:

By default all folders under the database/migrations directory will be registered for migrations.

But, if you would like to add multiple directories which are not under the migrations folder, you have to publish the config first.

php artisan vendor:publish --provider="matt127127\MigrationPath\ServiceProvider" --tag="config"

Add your custom directories:

'paths' => [
    database_path('migrations'),
    'path/to/custom_migrations', // Your Custom Migration Directory
],

License

This bundle is under the MIT license. For the full copyright and license information please view the LICENSE file that was distributed with this source code.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-05-13