laravel run local in production mode .env code example
Example: laravel APP_ENV config
if (\Illuminate\Support\Facades\App::environment('production')) {
// The environment is production
}
if (\Illuminate\Support\Facades\App::environment('production')) {
// The environment is production
}