Home >Backend Development >PHP Tutorial >How does laravel verify that one of the two fields is required?
For example: if email and phone are filled in, the verification will be passed. How to write the verification rules?
For example: if email and phone are filled in, the verification will be passed. How to write the verification rules?
<code>'email' => 'required_without:phone', 'phone' => 'required_without:email',</code>
For details, please see:
https://laravel.com/docs/5.3/...