Tempest, the framework Brent Roose is working on, allows you to attach a tag to a singleton definition, which means you can have multiple singletons of the same class, as long as their tags differ.
PHP
Optimizing Eloquent: Accessor Caching and Value Objects in Laravel
Laravel’s accessor caching with shouldCache() boosts performance by preventing repetitive computations for expensive accessors. Additionally, you can work with complex data like addresses using value objects, and Laravel will auto-sync changes back to the model. Read more…