F
Filament13mo 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
toeknee13mo ago
It would be: validationMessages(['field1' => 'Custom message', 'field2' => 'Custom message'])
Horia
HoriaOP13mo ago
validationMessages refers to the rule, not the field.
CaptainJoker
CaptainJoker11mo ago
Hi, were you able to find anything on this?
DrByte
DrByte11mo ago
Does the snake_case version of it work? required_without_all
Want results from more Discord servers?
Add your server