diff --git a/bootstrap/start.php b/bootstrap/start.php index 7ee494d7..2d5554f6 100644 --- a/bootstrap/start.php +++ b/bootstrap/start.php @@ -25,13 +25,9 @@ $app = new Illuminate\Foundation\Application; */ $env = $app->detectEnvironment(function() { - // Take care of Heroku deployment for us. - if ($envName = getenv('ENV')) { - return $envName; - } - // Always fall back to local. - return 'local'; + // Set the environment if set, otherwise it's local + return getenv('ENV') ?: 'local'; }); /*