You see, I have a form to register a new user, which has among its variables the email. These are the conditions you must meet:
'email' = > 'required | string | email | max: 255 | unique: users'
The condition unique:user
prevents you from entering a value that is already in the user table User
, but I also have another table called Tabu
, in which I enter the emails of users banned and deleted from the first table .
You can not use an email that appears in any of the 2 tables. How do I achieve it?