-1
I need to do a validation in the user registration where an email can only be validated if in the table users
your level of access is not company level.
On the table users
, there is already a field called nivel
which classifies this type of level of users.
Remembering that my application is written in Laravel
5.6.
So far I have this validation:
$validate = $request->validate([
'name' => 'required|min:3',
'email' => 'required|email|unique:users',
'phone' => 'required'
]);
I believe that for this situation I need to make a more personalized rule yet I do not have the necessary knowledge.
From now on I thank you for your help.
I point out you study ACL that it becomes much easier to understand this, but if you want to use these indico ways to understand the Gates with it you will define who can see or can not see.
– Lucas Antonio