Package Data | |
---|---|
Maintainer Username: | TomLegkov |
Maintainer Contact: | tom.legkov@outlook.com (Tom Legkov) |
Package Create Date: | 2016-09-02 |
Package Last Update: | 2016-11-27 |
Home Page: | |
Language: | PHP |
License: | Apache License 2.0 |
Last Refreshed: | 2024-05-04 15:07:03 |
Package Statistics | |
---|---|
Total Downloads: | 8 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 1 |
Total Forks: | 0 |
Total Open Issues: | 0 |
Fixes an annoying problem that Laravel doesn't fix - The ability to organize migrations into different folders.
Note: you can't have .php files in the root of the migration path. Everything has to be ordered in folders, otherwise Laravel's migrate:reset won't work.
Via Composer
$ composer require tomlegkov/migration-manager
And then run dump-autoload to configure the classes
$ composer dump-autoload
# Create a new migration, just as you would normally
$ php artisan make:model TestModel --migration
# Now, move it to a folder with Migration Manager
# It will automatically find the last created file
$ php artisan migman:move folderName
# Now you're ready to migrate
$ php artisan migman
# And now you can rollback aswell!
$ php artisan migman:reset
Apache License 2.0. Please see License File for more information.