Hi, have you tried clearing the config cache?
php artisan config:clear
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
APP_ENV=staging
i have changed it from local to production
Log::info(env('APP_ENV'));
Log::info(message: App::environment());
[2025-07-15 05:50:23] local.INFO: local
[2025-07-15 05:50:23] local.INFO: local
but it wont change i also checked the fallback value
'env' => env('APP_ENV', 'production');
Please guide me where i am going wrong!
Please or to participate in this conversation.