833 0 0 0
Last Updated : 2025-04-28 21:56:28
In this snippet I will teach you how to create unique validation related to another column
'email' => 'unique:users,email_address,NULL,id,account_id,1'
In the rule above, only rows with an account_id
of 1
would be included in the unique check.