846 0 0 0
Last Updated : 2025-06-16 00:55:50
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.