May 8, 2015
0
Level 1
How to inject a schema builder instance into a migration?
I'd like to use the schema builder inside a migration without using the facade.
Instead of using Schema::create() I'd like to inject an instance of the schema builder class and use something like $schema->create().
So far I was not able to use DI inside the migration class and I haven't found a solution for this, if I don't wanna use facades.
Is there a way to inject/use the schema builder in a migration without using the facade?
Please or to participate in this conversation.