Support the ongoing development of Laravel.io →
IOC Architecture
Last updated 2 years 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 2 years ago.
0

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

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

ciaranmg ciaranmg Joined 31 Jan 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.