809 0 0 0
Last Updated : 2025-04-29 00:31:22
In this snippet I will provide a way of validation one filed of two fields that must be filled
If you want one of two fileds must be filled, just use required_without like this
$rules = array(
'Email' => 'required_without:QQ',
'QQ' => 'required_without:Email',
);
If you have more than two fields and want one of them to be required use this snippet
$rules = array(
'Email' => 'required_without_all:foo,bar,...',
);