src/UniqueTranslationValidator.php
protected function addErrorsToValidator($validator, $parameters, $name, $locale)
    {
        $rule = 'unique_translation';
        $message = $this->getFormattedMessage($validator, $rule, $parameters, $name, $locale);

        $validator->errors()
            ->add($name, $message)
            ->add("{$name}.{$locale}", $message);
    }
protected function addErrorsToValidator($validator, $parameters, $name, $locale)
    {
        $rule = 'unique_translation';
        $message = $this->getFormattedMessage($validator, $rule, $parameters, $name, $locale);

        $validator->errors()
            ->add($name, $message)
            ->add("{$name}.{$locale}", $message);
    }
protected function addErrorsToValidator ( $ validator , $ parameters , $ name , $ locale ) { $ rule = 'unique_translation' ; $ message = $ this -> getFormattedMessage ( $ validator , $ rule , $ parameters , $ name , $ locale ) ; $ validator -> errors ( ) -> add ( $ name , $ message ) -> add ( "{$name}.{$locale}" , $ message ) ; }
Add error messages to the validator.

@param \Illuminate\Validation\Validator $validator
@param array $parameters
@param string $name
@param string $locale

@return void
Add error messages to the validator .