It's basically same as singleton().
http://stackoverflow.com/questions/17296224/laravel-4-container-class-share-function-closure-logic
it's pretty straight forward if you look at the source code.
vendor/laravel/framework/src/Illuminate/Container/Container.php
Many thanks moon0326,
I will check the source code.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community