Respect LARAVEL_ENV variable
Laravel **should** respect `LARAVEL_ENV` variable when running through CLI
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user