Skip to content

Commit

Permalink
Allow state path config
Browse files Browse the repository at this point in the history
  • Loading branch information
a21ns1g4ts committed Sep 22, 2024
1 parent 2baf23e commit 0fe82a0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Models/FieldGroup.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 0fe82a0

Please sign in to comment.