Skip to content

Commit

Permalink
Merge pull request #2 from a21ns1g4ts/allow-state-path-config
Browse files Browse the repository at this point in the history
Allow state path config
  • Loading branch information
cklei-carly authored Sep 24, 2024
2 parents 2baf23e + 0fe82a0 commit 26267b5
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 26267b5

Please sign in to comment.