Dear tzookb,
What version are you using of Laravel Framework?
Are you using into the register method into a custom ServicesProvider?
At last, are you updating your classmap in the composer.json?
Thanks.
I use the latest version, but I ask generally for the container object, as I notice it performs the closure even if the alias is not called in the request.
Did you by any chance set the service provider as not deferred?
I used the continer not in a laravel project, I added it to some pure php project.
I simply ask if it is right that the closure executes foreach request.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community