F
Filament7mo ago
Horia

Custom validation message for requiredWithoutAll

How can I set a custom validation message for this validation rule? requiredWithoutAll('field1,field2') It doesn't work as per documentation, like this: validationMessages(['requiredWithoutAll' => 'Custom message'])
4 Replies
toeknee
toeknee7mo ago
It would be: validationMessages(['field1' => 'Custom message', 'field2' => 'Custom message'])
Horia
Horia7mo ago
validationMessages refers to the rule, not the field.
CaptainJoker
CaptainJoker6mo ago
Hi, were you able to find anything on this?
DrByte
DrByte6mo ago
Does the snake_case version of it work? required_without_all