I have two fields CPF and CNPJ, the user must enter only one, but never leave both fields empty. This way it leaves the two fields mandatory:
[
'Cpf' => array('required'),
'Cnpj' => array('required'),
]
Is there any way in Laravel to validate only one required field when one is filled in?