Skip to content

Commit b644e19

Browse files
committed
Add refreshing fields
1 parent 227a8ca commit b644e19

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/Concerns/HasFieldsMapper.php

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22

33
namespace Vormkracht10\FilamentFields\Concerns;
44

5-
use Illuminate\Support\Collection;
5+
use Livewire\Attributes\On;
66
use Vormkracht10\Fields\Fields;
7+
use Illuminate\Support\Collection;
78
use Vormkracht10\FilamentFields\Enums\Field;
8-
use Vormkracht10\FilamentFields\Contracts\FieldInspector;
99
use Vormkracht10\FilamentFields\Models\Field as Model;
10+
use Vormkracht10\FilamentFields\Contracts\FieldInspector;
1011

1112
trait HasFieldsMapper
1213
{
@@ -35,6 +36,12 @@ public function boot(): void
3536
$this->fieldInspector = app(FieldInspector::class);
3637
}
3738

39+
#[On('refreshFields')]
40+
public function refresh(): void
41+
{
42+
//
43+
}
44+
3845
protected function mutateFormDataBeforeFill(array $data): array
3946
{
4047
if ($this->record->fields->isEmpty()) {

0 commit comments

Comments
 (0)