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.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community