The table structure:
users: id - email - active
I want check duplicated email only when active is 0.
For all emails,I do this:
'email' => 'required|unique:users|email',
Is it possible to define a condition in the validation?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire