check for $_SERVER instead of $_ENV LARAVEL_ENV.
This commit is contained in:
parent
c9698df285
commit
2c774adbde
|
@ -100,7 +100,7 @@ private static function parse($key)
|
|||
*/
|
||||
public static function load($file)
|
||||
{
|
||||
$directory = (isset($_ENV['LARAVEL_ENV'])) ? $_ENV['LARAVEL_ENV'].'/' : '';
|
||||
$directory = (isset($_SERVER['LARAVEL_ENV'])) ? $_SERVER['LARAVEL_ENV'].'/' : '';
|
||||
|
||||
if ( ! array_key_exists($file, static::$items) and file_exists($path = APP_PATH.'config/'.$directory.$file.EXT))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue