New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

matt127127/laravel-migration-paths

Multiple migration paths for Laravel projects.
3,093
Install
composer require matt127127/laravel-migration-paths
Latest Version:v1.20
PHP:>=7.0|^8.0
Laravel:10 · 11 · 12
Older releases:5 – 9
License:MIT
Last Updated:Feb 22, 2026
Links: GitHub  ·  Packagist
Maintainer: matthewtreagus

Laravel Migration Paths

By matt127127

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.

Installation:

Use Composer to install the library.

composer require matt127127/laravel-migration-paths

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

matt127127\MigrationPath\ServiceProvider::class,

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

Usage:

By default all folders under the database/migrations directory will be registered for migrations.

But, if you would like to add multiple directories which are not under the migrations folder, you have to publish the config first.

php artisan vendor:publish --provider="matt127127\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.

Related Packages

nscreed/laravel-migration-paths

Custom migration paths for Laravel project.

162,427 25
stidges/laravel-fk-migration

Helpful base migration for creating all your foreign key without worrying about...

4,229 37
vovanmix/phinx-laravel-style

Extension on top of Phinx to make migrations in Laravel 5 style with good IDE su...

118 0
sestolk/laravel-batched-migrations

Make sure your database migrations are always unique

50 2

Version History

Version Released PHP Laravel License
v1.20 >=7.0|^8.0 ^10.0|^11.0|^12.0 MIT
v1.1.8 >=7.0|^8.0 ^6.0|^7.0|^8.0|^9.0|^10.0 MIT
v1.1.7 >=7.0 ^6.0|^7.0|^8.0|^9.0 MIT
v1.1.6 >=7.0 ^6.0|^7.0|^8.0|^9.0 MIT
v1.1.5 >=7.0 ^6.0|^7.0|^8.0 MIT