Support the ongoing development of Laravel.io →
IOC Architecture
Last updated 3 weeks ago.
0

Use Artisan::resolve() to register your command and the container will automatically resovle any dependencies. So if you have a this class as a dependency in the constructor of your command class, it all will be recursively resolved.

But I guess you should post some code to see if I undestrood your question fine.

Last updated 3 weeks ago.
0

That makes sense, I will test it and come back .

Last updated 3 weeks ago.
0

Sign in to participate in this thread!

LoadForge

Your banner here too?

ciaranmg ciaranmg ciaranmg Joined 31 Jan 2014

Moderators

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

Your logo here?

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

© 2022 Laravel.io - All rights reserved.