|Ratings|| ||Unique User Downloads|| ||Download Rankings|
|Not yet rated by the users||Total: 21 ||All time: 10,426 This week: 242|
This package can add custom directories for Laravel migration files.
It is a service provider to use with the Laravel framework that allows having multiple directories to store migration files.
The package adds all directories under the migrations directory to the list of migration directories.
Additionally, a developer may add custom directories to look for migration files.
|Laravel is a framework that comes with support for migrations. Migrations are actions that need to be performed to make application changes, for instance to upgrade the database of an application to update its schema to a newer revision.
Usually Laravel migrations are performed by looking at a migrations directory for eventual changes that need to be executed.
This package allows migrations to be performed by looking at different directories, so migrations can be executed to perform changes needed by different components of an application.
Laravel Migration Paths
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.
Even, if your organize your existing files it will works as well.
Use Composer to install the library.
composer require nscreed/laravel-migration-paths
After updating composer, add the service provider to the
providers array in
Laravel 5.5 uses Package Auto-Discovery, so does not require you to manually add the ServiceProvider.
By default all folders under the
migrations directory will be registered for migrations.
But, if you like to add custom directories which is not under the migrations folder
you have to publish the config first.
php artisan vendor:publish --provider="NsCreed\MigrationPath\ServiceProvider" --tag="config"
Add your custom directories:
'paths' => [
'path/to/custom_migrations', // Your Custom Migration Directory
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.
||Applications that use this package
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.