Skip to content

Commit dc8ba7a

Browse files
committed
Merge branch 'main' of github.com:vormkracht10/filament-fields
2 parents 040eaaa + 6df9b5a commit dc8ba7a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Filament/RelationManagers/FieldsRelationManager.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function form(Form $form): Form
4242
->required()
4343
->placeholder(__('Name'))
4444
->live(debounce: 250)
45-
->afterStateUpdated(fn(Set $set, ?string $state) => $set('slug', Str::slug($state))),
45+
->afterStateUpdated(fn (Set $set, ?string $state) => $set('slug', Str::slug($state))),
4646

4747
TextInput::make('slug')
4848
->readonly(),
@@ -74,10 +74,10 @@ function () {
7474
]),
7575
Section::make('Configuration')
7676
->columns(3)
77-
->schema(fn(Get $get) => $this->getFieldTypeFormSchema(
77+
->schema(fn (Get $get) => $this->getFieldTypeFormSchema(
7878
$get('field_type')
7979
))
80-
->visible(fn(Get $get) => filled($get('field_type'))),
80+
->visible(fn (Get $get) => filled($get('field_type'))),
8181
]),
8282
]);
8383
}
@@ -161,7 +161,7 @@ public function table(Table $table): Table
161161
'model_key' => $this->ownerRecord->slug,
162162
];
163163
})
164-
->mutateFormDataUsing(fn(array $data, Model $record): array => $this->transferValuesOnSlugChange($data, $record))
164+
->mutateFormDataUsing(fn (array $data, Model $record): array => $this->transferValuesOnSlugChange($data, $record))
165165
->after(function (Component $livewire) {
166166
$livewire->dispatch('refreshFields');
167167
}),
@@ -224,4 +224,4 @@ private function transferValuesOnSlugChange(array $data, Model $record): array
224224

225225
return $data;
226226
}
227-
}
227+
}

0 commit comments

Comments
 (0)