I have 2 (contact telephone and contact mobile) fields in a form which either A OR B need to be filled.
I'm validating the form using laravel request validation and the required_without
rule, which looks like this.
'contact_telephone' => 'required_without:contact_mobile',
'contact_mobile' => 'required_without:contact_telephone',
So with this code it specifies that one of the 2 fields must be filled.
The error is that if I try to submit the form without filling either one in, the error message shows twice.
How would I show the message just once? Or is there a better rule to achieve this instead of required_without
that i'm missing?