PHP Classes
elePHPant
Icontem

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    
Last Updated Ratings Unique User Downloads Download Rankings
2019-11-05 (28 days ago) RSS 2.0 feedNot yet rated by the usersTotal: 12 All time: 9,768 This week: 378Up
Version License PHP version Categories
laravel-migration-pa 1.0Custom (specified...5PHP 5, Utilities and 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
Nominee
Vote
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
  Performance   Level  
Name: Faisal Islam <contact>
Classes: 1 package by
Country: Bangladesh Bangladesh
Innovation award
Innovation award
Nominee: 1x

 

Details

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:12
This week:0
All time:9,768
This week:378Up