From 5a34c60c6103000f2c1a4841820d50a4327cd453 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Wed, 8 Oct 2014 17:12:10 -0500 Subject: [PATCH] Simplify environment loading. --- .gitignore | 2 +- bootstrap/environment.php | 31 ++++++++++++++++++++++++++----- 2 files changed, 27 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index 7956c475..b9f5900a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,6 @@ -.env.* /.idea /vendor +.env .DS_Store Thumbs.db composer.lock diff --git a/bootstrap/environment.php b/bootstrap/environment.php index f133a3d9..b676d2c0 100644 --- a/bootstrap/environment.php +++ b/bootstrap/environment.php @@ -1,5 +1,27 @@ detectEnvironment([ - - 'local' => ['homestead'], - -]); +$env = $app->detectEnvironment(function() +{ + return getenv('APP_ENV'); +});