diff --git a/CHANGELOG-8.x.md b/CHANGELOG-8.x.md index 3fdf215..7327c71 100644 --- a/CHANGELOG-8.x.md +++ b/CHANGELOG-8.x.md @@ -2,6 +2,14 @@ This changelog references the relevant changes (bug and security fixes) done to `orchestra/workbench`. +## 8.15.0 + +Released: 2024-12-16 + +### Changes + +* Allow to configure Workbench default namespace prefix via `workbench:devtool` command. + ## 8.14.0 Released: 2024-12-10 diff --git a/CHANGELOG-9.x.md b/CHANGELOG-9.x.md index e6fccf9..0e5ef2d 100644 --- a/CHANGELOG-9.x.md +++ b/CHANGELOG-9.x.md @@ -2,6 +2,14 @@ This changelog references the relevant changes (bug and security fixes) done to `orchestra/workbench`. +## 9.11.0 + +Released: 2024-12-16 + +### Changes + +* Allow to configure Workbench default namespace prefix via `workbench:devtool` command. + ## 9.10.0 Released: 2024-12-10 diff --git a/src/StubRegistrar.php b/src/StubRegistrar.php index 76d169b..b32cb05 100644 --- a/src/StubRegistrar.php +++ b/src/StubRegistrar.php @@ -7,6 +7,8 @@ use function Orchestra\Testbench\join_paths; /** + * @internal + * * @phpstan-type TStubFiles array{ * config: ?string, * 'config.basic': ?string, diff --git a/src/Workbench.php b/src/Workbench.php index d30c783..0eb5810 100644 --- a/src/Workbench.php +++ b/src/Workbench.php @@ -24,13 +24,15 @@ class Workbench extends \Orchestra\Testbench\Workbench\Workbench */ public static function applicationPath(array|string $path = ''): string { - return app()->basePath( + return base_path( join_paths(...Arr::wrap(\func_num_args() > 1 ? \func_get_args() : $path)) ); } /** - * Get the path to the laravel folder. + * Get the path to the Laravel application skeleton. + * + * @see \Orchestra\Workbench\Workbench::applicationPath() */ public static function laravelPath(array|string $path = ''): string {