Support the ongoing development of Laravel.io →
IOC Packages
Last updated 1 year ago.
0

In your app/start/artisan.php file are you doing:

new CommandClassName

If so, then it's not resolving out of the container, meaning that it won't automatically resolve constructor dependencies.

I've never done this, but it should work..

Artisan::add(App::make('Calebdre\AdminGenerator\Commands\GenerateAdmin'));
Last updated 1 year ago.
0

Where would i put that? I tried in the boot method in the service provider, but that doesn't do anything.

Last updated 1 year ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

calebdre calebdre Joined 2 Feb 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.