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.
That makes sense, I will test it and come back .
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community