Replies: 1 comment 1 reply
-
I want to avoid chaining validators on the Form components |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Package
Actions
Package Version
v3.3.4
How can we help you?
I want to validate the data from an action form with the Laravel Validator:
The problem is that the
wire:model
keys of the form in the action modal are prefixed withmountedActionsData.0.
, but the validator throws errors only forfirst_name
without that prefix. Therefore the validation errors are not shown in the form, because the keys filament sets for the fields are prefixed.I want to avoid chaining validators on the Form components. Is there a clean way to accomplish the use of Laravel's validator and showing the validation errors in the form?
Beta Was this translation helpful? Give feedback.
All reactions