diff --git a/laravel/bootstrap/constants.php b/laravel/bootstrap/constants.php index e2364d7e..9c6b4446 100644 --- a/laravel/bootstrap/constants.php +++ b/laravel/bootstrap/constants.php @@ -56,8 +56,6 @@ function constants($constants) constants($constants); -unset($constants); - /** * Set the Laravel environment configuration path constant. * The environment is controlled by setting an environment @@ -65,6 +63,6 @@ function constants($constants) */ $environment = (isset($_SERVER['LARAVEL_ENV'])) ? $_SERVER['LARAVEL_ENV'] : ''; -define('ENV_CONFIG_PATH', $environment); +constants(array('ENV_CONFIG_PATH' => $environment)); -unset($environment); \ No newline at end of file +unset($constants, $environment); \ No newline at end of file