fix: add support for windows home path

This commit is contained in:
Enzo Innocenzi
2020-06-17 19:41:40 +02:00
parent baa9819daf
commit 54e9d4757d
6 changed files with 1124 additions and 18 deletions

View File

@@ -45,7 +45,7 @@ class AppServiceProvider extends ServiceProvider
}
$configFile = implode(DIRECTORY_SEPARATOR, [
$_SERVER['HOME'] ?? __DIR__,
$_SERVER['HOME'] ?? $_SERVER['USERPROFILE'] ?? __DIR__,
'.expose',
'config.php',
]);