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.
Sign in to participate in this thread!
We'd like to thank these amazing companies for supporting us