I always create Service Providers and with them register custom folder for migrations. Have you tried that?
Dec 14, 2016
9
Level 1
Migration from different folder.
Hello everybody,
I have encountered a small problem whilst experimenting with Laravel. Lets say that I have a migration:
/somefolder/migration/the_migration_itself.php
When I run:
php artisan migrate --path somefolder/migration/
It works right, not a single problem, but what ends up happening is I cant then run for example:
php artisan migrate:rollback
I get an error:
[ErrorException]
Undefined index: the_migration_itself
I think this might have something to do with the way it gets stored in the database it just puts the_migration_itself in the migration column instead of maybe the entire path (somefolder/migration/the_migration_itself).
Level 50
There is also a --path option on the migrate:rollback - does that work?
3 likes
Please or to participate in this conversation.