mercredi 7 décembre 2022

laravel Unique Validation on row where is_active is 1

I want to implement unique validation on one column but it should only check active rows of the table. so is there any way I can implement this logic using laravel validation?

Below is the logic I am using to check unique records but its not working.

unique:users,email,is_active,1


from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/wT1sLlI
via IFTTT

Aucun commentaire:

Enregistrer un commentaire