Skip to content

cmarfil/Laravel-pending-migrations-advisor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel 5 pending migration advisor

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages