jaybizzle / laravel-migrations-organiser
A Laravel package to help organise migration files.
Package info
github.com/JayBizzle/Laravel-Migrations-Organiser
pkg:composer/jaybizzle/laravel-migrations-organiser
Requires
- php: ^8.2
- illuminate/support: ^11.0|^12.0|^13.0
Requires (Dev)
- illuminate/console: ^10.0|^12.0|^13.0
- illuminate/database: ^10.0|^12.0|^13.0
- illuminate/filesystem: ^10.0|^12.0|^13.0
- laravel/pint: ^1.29
- mockery/mockery: ^1.3.1
- orchestra/testbench: ^10.2
- phpunit/phpunit: ^9.3|^10.0|^11.0
This package is auto-updated.
Last update: 2026-03-26 22:00:48 UTC
README
As projects grow, the number of migration files can quickly become unwieldy. This package automatically organises your migrations into yyyy/mm folders, making them easier to navigate.
database/migrations/2025/03/2025_03_26_000000_create_users_table.php
Version Compatibility
| Laravel | Package |
|---|---|
| 5.3 - 6.x | v4.* |
| 7.x | v5.* |
| 8 - 10 | v6.* |
| 11 - 13 | v7.* |
Installation
composer require jaybizzle/laravel-migrations-organiser
The package uses Laravel's auto-discovery, so no manual service provider registration is needed.
Usage
This package hooks into the default artisan make:migration command. Just use it as you normally would and the package takes care of the rest.
Organise existing migrations
If you already have migrations in the base folder, run:
php artisan migrate:organise
This will move all existing migrations into the appropriate yyyy/mm folders.
Flatten migrations
To move all migrations back to the base migrations folder:
php artisan migrate:flatten
Add --force to delete leftover subdirectories without confirmation.
migrate:disorganiseis still available as an alias for backward compatibility.