I had a unique situation where a config value could come from an environment variable or fall back to a more expensive lookup. Here's a simple way to avoid doing the expensive work when it's not needed.
masteringlaravel.io/daily/2025-12-09-lazy-loading-a-backup-configuration-value
Back