I'm not sure, but I think that if you use bindShared() the closure is called only once and the return value is always the same (shared), if you use only bind() each time you call App::make() the closure is called again.
Source: digging in Illuminate\Container\Container source code
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community