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.
#Artisan
Articles
A handful of Artisan optimization commands shave real milliseconds off every request in production. Here is what each one does and when to run it.
Replace a tangle of crontab entries with Laravel's expressive scheduler. This tutorial covers scheduling commands, closures, overlap prevention, and health checks.
Laravel 13.16.0 lands with a built-in artisan dev command, a smarter queue worker, and a foreignUuidFor migration helper. Here is what changed and why it matters.