Laravel Validation one of two fields must be filled

required_without should work.

It means that the field is required if the other field is not present. If have more than two fields and only one is required, use required_without_all:foo,bar,...

$rules = array(
    'Email' => 'required_without:QQ',
    'QQ' => 'required_without:Email',
);

Leave a Comment