Did you try to create a new class like this?
new \Illuminate\Database\Schema\Blueprint('test', function () {;
});
Note: you can find the underlying facade classes in the documentation: http://laravel.com/docs/5.0/facades
I am actually giving the Laravel Lumen micro framework a try, and I have this question. How would you access the underlying Schema facade's instance of Blueprint if you don't want to enable Facades?
The concrete Illuminate\Database\Migrations\Migration file does only provide a getConnection method, which doesn't allow us a quick and clean access to Blueprint instances.
I also note that there is no way to inject dependencies into the Migration classes, as the up and down methods are called without any arguments and not resolved from the container, and the class constructor is not resolved from the container either.
Does anyone have a nice implementation of migration classes not actually using the facades?
Please or to participate in this conversation.