|
@@ -226,9 +226,9 @@ class Config {
|
|
|
// Configuration files can be made specific for a given environment. If an
|
|
|
// environment has been set, we will merge the environment configuration
|
|
|
// in last, so that it overrides all other options.
|
|
|
- if (isset($_SERVER['LARAVEL_ENV']))
|
|
|
+ if ( ! is_null(Request::env()))
|
|
|
{
|
|
|
- $paths[] = $paths[count($paths) - 1].$_SERVER['LARAVEL_ENV'].'/';
|
|
|
+ $paths[] = $paths[count($paths) - 1].Request::env().'/';
|
|
|
}
|
|
|
|
|
|
return $paths;
|