PHP Classes

Multiple Laravel Migration Path Directories: Add custom directories for Laravel migration files

Recommend this page to a friend!
  Info   View files Documentation   View files View files (7)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 26 This week: 1All time: 11,099 This week: 571Up
Version License PHP version Categories
laravel-migration-pa 1.0Custom (specified...5PHP 5, Tools, Libraries
Description 

Author

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.

Innovation Award
PHP Programming Innovation award nominee
November 2019
Number 6
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.

Manuel Lemos
Picture of Faisal Islam
  Performance   Level  
Name: Faisal Islam <contact>
Classes: 1 package by
Country: Bangladesh Bangladesh
Age: 34
All time rank: 451353 in Bangladesh Bangladesh
Week rank: 420 Up9 in Bangladesh Bangladesh Up
Innovation award
Innovation award
Nominee: 1x

Documentation

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.

Installations:

Use Composer to install the library.

composer require nscreed/laravel-migration-paths

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

NsCreed\MigrationPath\ServiceProvider::class,

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

Usages

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' => [
    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.


  Files folder image Files  
File Role Description
Files folder imageconfig (1 file)
Files folder imagesrc (2 files, 1 directory)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file readme.md Doc. Documentation

  Files folder image Files  /  config  
File Role Description
  Accessible without login Plain text file laravel-migration-paths.php Aux. Auxiliary script

  Files folder image Files  /  src  
File Role Description
Files folder imageExceptions (1 file)
  Plain text file CustomMigrationPaths.php Class Class source
  Plain text file ServiceProvider.php Class Class source

  Files folder image Files  /  src  /  Exceptions  
File Role Description
  Plain text file InvalidPathException.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:26
This week:1
All time:11,099
This week:571Up