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
It would be:
validationMessages(['field1' => 'Custom message', 'field2' => 'Custom message'])
validationMessages
refers to the rule, not the field.Hi, were you able to find anything on this?
Does the snake_case version of it work?
required_without_all