src/UniqueTranslationValidator.php
public function validate($attribute, $value, $parameters, $validator)
    {
        list ($name, $locale) = $this->getAttributeNameAndLocale($attribute);

        if ($this->isUnique($value, $name, $locale, $parameters)) {
            return true;
        }

        $this->addErrorsToValidator($validator, $parameters, $name, $locale);

        return false;
    }
public function validate($attribute, $value, $parameters, $validator)
    {
        list ($name, $locale) = $this->getAttributeNameAndLocale($attribute);

        if ($this->isUnique($value, $name, $locale, $parameters)) {
            return true;
        }

        $this->addErrorsToValidator($validator, $parameters, $name, $locale);

        return false;
    }
public function validate ( $ attribute , $ value , $ parameters , $ validator ) { list ( $ name , $ locale ) = $ this -> getAttributeNameAndLocale ( $ attribute ) ; if ( $ this -> isUnique ( $ value , $ name , $ locale , $ parameters ) ) { return true ; } $ this -> addErrorsToValidator ( $ validator , $ parameters , $ name , $ locale ) ; return false ; }
Check if the translated value is unique in the database.

@param string $attribute
@param string $value
@param array $parameters
@param \Illuminate\Validation\Validator $validator

@return bool
Check if the translated value is unique in the database .