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 (15 days ago) RSS 2.0 feedNot yet rated by the usersTotal: 10 This week: 1All time: 9,760 This week: 347Up
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.

  Performance   Level  
Name: Faisal Islam <contact>
Classes: 1 package by
Country: Bangladesh Bangladesh
Age: 30
All time rank: 431855 in Bangladesh Bangladesh
Week rank: 316 Up10 in Bangladesh Bangladesh Up

 

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:10
This week:1
All time:9,760
This week:347Up