定制 cmarfil/pending-migration-advisor 二次开发

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

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

cmarfil/pending-migration-advisor

最新稳定版本:v1.1.0

Composer 安装命令:

composer require cmarfil/pending-migration-advisor

包简介

Laravel pending migrations advisor.

README 文档

README

Simple Laravel pending migrations advisor, display a warning popup when are pending migrations to run.

alt tag

For Laravel 4, please use the L4 branch!

Installation

  1. Begin by installing this package through Composer. Edit your project's composer.json file to require-dev cmarfil/pending-migration-advisor.

    "require-dev": {
    	"cmarfil/pending-migration-advisor": ">=1.1"
    }
  2. Add 'Cmarfil\PendingMigrationAdvisor\PendingMigrationAdvisorServiceProvider' to providers in app/config/app.php.

'providers' => array(
  // ...
  'Cmarfil\PendingMigrationAdvisor\PendingMigrationAdvisorServiceProvider',
),

Configuration

Open app/config/pending-migration-advisor.php to adjust package configuration. If this file doesn't exist, run:

php artisan vendor:publish --provider="Cmarfil\PendingMigrationAdvisor\PendingMigrationAdvisorServiceProvider"
return array(
    /**
     * The migrations path
     */
    'migrations_path' =>  base_path().'/database/migrations',
    /**
     * Turn off the advisor
     */
    'enabled' =>  true,
);

Migrations path

Specify the migrations path ( normally database/migrations )

Enabled

Enable or disable the advisor

Finally

Contributing

Feel free to create a fork and submit a pull request if you would like to contribute.

Bug reports

Raise an issue on GitHub if you notice something broken.

Credits

Html popup injection based on: https://github.com/barryvdh/laravel-debugbar

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-02-18