setting laravel application environment to production 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
}