The improvements in L5 are really amazing so I'm playing around with them for a new project. I'm developing a setup command and want to call
Artisan::call('migrate', ['--seed' => true]);
which results in
UndefinedMethodException in Artisan.php line 43:
Attempted to call method "make" on class "Illuminate\Console\Application".
Do you have any idea how to solve it? Couldn't find anything in the pull requests. In my opinion I have the latest version of laravel/laravel and laravel/framework.
Yup, the make method is gone in that class. It's now in the constructor method. If you are into a quick fix until this is solved, you can always use exec(). Not as safe, but will do for a temporary fix on a dev project.
Thanks a lot for your response. Maybe it will be fixed today. Otherwise I will try to fix it and send a pull request! Thought it was just an issue on my maschine caused by inconsistent package versions or sth like that.
$this->app->make('Illuminate\Contracts\Console\Kernel')->handle(
new Symfony\Component\Console\Input\StringInput('migrate'),
new Symfony\Component\Console\Output\NullOutput);