Skip to content

Commit b6afb70

Browse files
committed
wip
Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
1 parent d7446dc commit b6afb70

File tree

4 files changed

+43
-2
lines changed

4 files changed

+43
-2
lines changed

CHANGELOG-7.x.md

+16
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,22 @@
22

33
This changelog references the relevant changes (bug and security fixes) done to `orchestra/testbench`.
44

5+
## 7.37.0
6+
7+
Released: 2023-12-06
8+
9+
### Changes
10+
11+
* Update minimum support for Testbench Core v7.37.0+. ([v7.36.0...v7.37.0](https://github.com/orchestral/testbench-core/compare/v7.36.0...v7.37.0))
12+
13+
##### Added
14+
15+
* Supports Workbench `discovers.components` configuration.
16+
17+
##### Changes
18+
19+
* Sync `view.paths` configuration when Workbench discover views.
20+
521
## 7.36.0
622

723
Released: 2023-12-04

bin/sync

+8
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,14 @@ Illuminate\Support\Collection::make([
2222

2323
$files->copy("{$workingPath}/core/testbench.yaml", "{$workingPath}/testbench.yaml");
2424

25+
Illuminate\Support\Collection::make([
26+
...$files->glob("{$workingPath}/core/workbench/app/View/Components/*"),
27+
])->flatten()
28+
->filter(fn ($file) => is_file($file))
29+
->each(function ($file) use ($files, $workingPath) {
30+
$files->copy($file, "{$workingPath}/workbench".Illuminate\Support\Str::after($file, "{$workingPath}/core/workbench"));
31+
});
32+
2533
Illuminate\Support\Collection::make([
2634
...$files->glob("{$workingPath}/core/workbench/config/*"),
2735
...$files->glob("{$workingPath}/core/workbench/database/migrations/*"),

composer.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
"fakerphp/faker": "^1.21",
2626
"laravel/framework": "^10.23.1",
2727
"mockery/mockery": "^1.5.1",
28-
"orchestra/testbench-core": "^8.16",
29-
"orchestra/workbench": "^1.1 || ^8.1",
28+
"orchestra/testbench-core": "^8.17",
29+
"orchestra/workbench": "^1.2 || ^8.2",
3030
"phpunit/phpunit": "^9.6 || ^10.1",
3131
"symfony/process": "^6.2",
3232
"symfony/yaml": "^6.2",
+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php
2+
3+
namespace Workbench\App\View\Components;
4+
5+
use Illuminate\View\Component;
6+
use Illuminate\View\View;
7+
8+
class Alert extends Component
9+
{
10+
/**
11+
* Get the view / contents that represent the component.
12+
*/
13+
public function render()
14+
{
15+
return '<div>Alert Component</div>';
16+
}
17+
}

0 commit comments

Comments
 (0)