diff --git a/app/helpers.php b/app/helpers.php new file mode 100644 index 0000000..249843c --- /dev/null +++ b/app/helpers.php @@ -0,0 +1,14 @@ +useEnvironmentPath(getenv('HOME') . DIRECTORY_SEPARATOR . '.bunny-cli'); + $app->useEnvironmentPath(bunny_cli_path()); } diff --git a/composer.json b/composer.json index b0cab9c..652d2b1 100644 --- a/composer.json +++ b/composer.json @@ -29,7 +29,10 @@ "autoload": { "psr-4": { "App\\": "app/" - } + }, + "files": [ + "app/helpers.php" + ] }, "autoload-dev": { "psr-4": { diff --git a/config/filesystems.php b/config/filesystems.php index 1b531ac..c9c1621 100644 --- a/config/filesystems.php +++ b/config/filesystems.php @@ -5,7 +5,7 @@ return [ 'disks' => [ 'local' => [ 'driver' => 'local', - 'root' => getenv('HOME') . DIRECTORY_SEPARATOR . '.bunny-cli', + 'root' => bunny_cli_path(), ], ], ];