Support the ongoing development of Laravel.io →
IOC Architecture
Last updated 2 years ago.
0

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

Last updated 2 years ago.
0

Many thanks moon0326,

I will check the source code.

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.