- when using the Rule class to check on existence of specific record while validation , a query builder is being returned that can be used for nested checks
Rule::exists('addresses', 'id')->where(function($builder) {
$builder->where('user_id', auth()->id());
})
That's an alternative to creating a couple of "exists" rule like the following: