1
How do I customize the user registration Laravel
in the auth
pattern using php artisan make:auth
?
I need the following clause It is mandatory to insert the field CPF or CNPJ.
I found the registration validation, but I’d like to add this clause?
return Validator::make($data, [
'name' => 'required|string|max:255',
'email' => 'required|string|email|max:255|unique:users',
'password' => 'required|string|min:6|confirmed',
]);
What’s the question? It’s not just enter the validation data in Validator and ready?
– Wallace Maxters
How to use connective OR ? In validation, to accept only one OR another
– Gabriel Alves