I read this. But I don't understand how to I send to rule data for verify if $attribute has a $value and this $value has part of other attribute named "domain"
According documentation object rules
public function passes($attribute, $value)
{
return strtoupper($value) === $value;
}
On your reply I don't see a way for pass data to rule. Data (And my question) is field on relationship BelongTo, named "domain"