Calling env() in a controller works in development and returns null in production. Here is why config caching breaks it and the one rule that avoids the trap.
Calling env() in a controller works in development and returns null in production. Here is why config caching breaks it and the one rule that avoids the trap.