Support the ongoing development of Laravel.io →
Eloquent IOC Architecture
Last updated 1 year ago.
0

Where do you want to have access to that global "thing" and what do you want to do with it? A constant may be suitable for a string but not for an object. There are many ways dealing with this. A string could be placed in a config file if it has to do with configuration. An object suits best to be bound to the IOC container.

Last updated 9 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

ahmadina ahmadina Joined 6 Mar 2014

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.