Wrapping expensive permission or feature-flag lookups inside Laravel's
once(fn () => ...) helper caches the return value in memory for the current request instance and automatically flushes between Octane requests or queue jobs.commit 0325c62