From 0fe82a0cf74a1a3980d65c0b9555cab124b620d7 Mon Sep 17 00:00:00 2001 From: a21ns1g4ts Date: Sat, 21 Sep 2024 23:35:24 -0300 Subject: [PATCH] Allow state path config --- src/Models/FieldGroup.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Models/FieldGroup.php b/src/Models/FieldGroup.php index 1431b02..196e6f6 100644 --- a/src/Models/FieldGroup.php +++ b/src/Models/FieldGroup.php @@ -63,6 +63,9 @@ public function toFilamentComponent() $fiFormComponent->label($field->label); $fiFormComponent->helperText($field->instructions); $fiFormComponent->required($field->mandatory); + if ($field->state_path) { + $fiFormComponent->statePath($field->state_path); + } $fiFormConfig->applyConfig($fiFormComponent);