Commit ff7f6f67 authored by Taylor Otwell's avatar Taylor Otwell

Merge pull request #1573 from neoascetic/patch-1

Respect LARAVEL_ENV variable
parents 2946274a 77679a56
......@@ -171,9 +171,9 @@ Request::$foundation = RequestFoundation::createFromGlobals();
if (Request::cli())
{
$environment = get_cli_option('env');
$environment = get_cli_option('env', getenv('LARAVEL_ENV'));
if ( ! isset($environment))
if (empty($environment))
{
$environment = Request::detect_env($environments, gethostname());
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment