We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2946274 + 77679a5 commit ff7f6f6Copy full SHA for ff7f6f6
laravel/core.php
@@ -171,9 +171,9 @@
171
172
if (Request::cli())
173
{
174
- $environment = get_cli_option('env');
+ $environment = get_cli_option('env', getenv('LARAVEL_ENV'));
175
176
- if ( ! isset($environment))
+ if (empty($environment))
177
178
$environment = Request::detect_env($environments, gethostname());
179
}
@@ -240,4 +240,4 @@
240
foreach ($bundles as $bundle => $config)
241
242
Bundle::register($bundle, $config);
243
-}
+}
0 commit comments