spatie/once
A tiny PHP helper to run code only once per request. Cache expensive computations or object initialization in a single spot, keyed automatically by the call site. Great for computed properties, accessors, and avoiding duplicate work.
Full Changelog: https://github.com/spatie/once/compare/3.1.1...3.1.2
Full Changelog: https://github.com/spatie/once/compare/3.1.0...3.1.1
Full Changelog: https://github.com/spatie/once/compare/3.0.2...3.1.0
Full Changelog: https://github.com/spatie/once/compare/3.0.1...3.0.2
WeakMapget on cacheonce in evalflush methodonce in static functions__memoized in favor of Spatie\Once\CacheMemoizeAwareTraitfix cacheability of falsy return values
initial release
experimental release
How can I help you explore Laravel packages today?