Use php artisan octane:start or sail up -d with APP_ENV=local but CACHE_DRIVER=redis and QUEUE_CONNECTION=database . Simulate production locally, or the Laravel gods will simulate failure for you at 2 AM.
It’s 9:58 PM. You just pushed what you thought was a tiny hotfix: “Update user avatar validation.”
Add this temporarily to AppServiceProvider@boot :
Now go fix that avatar upload. And next time? Deploy at 11 AM on Tuesday.
php artisan optimize:clear php artisan config:cache # only if in production php artisan queue:restart 90% of “broken after deploy” is cached config pointing to the wrong env. Don’t tail -200 and panic. Do this:
Use php artisan octane:start or sail up -d with APP_ENV=local but CACHE_DRIVER=redis and QUEUE_CONNECTION=database . Simulate production locally, or the Laravel gods will simulate failure for you at 2 AM.
It’s 9:58 PM. You just pushed what you thought was a tiny hotfix: “Update user avatar validation.”
Add this temporarily to AppServiceProvider@boot :
Now go fix that avatar upload. And next time? Deploy at 11 AM on Tuesday.
php artisan optimize:clear php artisan config:cache # only if in production php artisan queue:restart 90% of “broken after deploy” is cached config pointing to the wrong env. Don’t tail -200 and panic. Do this: