Skip to content

Commit

Permalink
Avoid env helper in src and don't double call it (#30927)
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamCampbell authored and taylorotwell committed Dec 25, 2019
1 parent a7db749 commit 8b09d9e
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,14 @@ protected function checkForSpecificEnvironmentFile($app)
}
}

if (! env('APP_ENV')) {
$environment = Env::get('APP_ENV');

if (! $environment) {
return;
}

$this->setEnvironmentFilePath(
$app, $app->environmentFile().'.'.env('APP_ENV')
$app, $app->environmentFile().'.'.$environment
);
}

Expand Down

0 comments on commit 8b09d9e

Please sign in to comment.