Skip to content

Commit

Permalink
Merge branch '8.x' into 9.x
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <[email protected]>
  • Loading branch information
crynobone committed Dec 15, 2024
2 parents b43042d + 7aa6b5e commit b19c7fb
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 2 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG-8.x.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 8 additions & 0 deletions CHANGELOG-9.x.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions src/StubRegistrar.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
use function Orchestra\Testbench\join_paths;

/**
* @internal
*
* @phpstan-type TStubFiles array{
* config: ?string,
* 'config.basic': ?string,
Expand Down
6 changes: 4 additions & 2 deletions src/Workbench.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit b19c7fb

Please sign in to comment.