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

        return $validator->makeReplacements($message, $name, $rule, $parameters);
    }
protected function getFormattedMessage($validator, $rule, $parameters, $name, $locale)
    {
        $message = $this->getMessage($validator, $rule, $name, $locale);

        return $validator->makeReplacements($message, $name, $rule, $parameters);
    }
protected function getFormattedMessage ( $ validator , $ rule , $ parameters , $ name , $ locale ) { $ message = $ this -> getMessage ( $ validator , $ rule , $ name , $ locale ) ; return $ validator -> makeReplacements ( $ message , $ name , $ rule , $ parameters ) ; }
Get the formatted error message.

This will format the placeholders:
e.g. "post_slug" will become "post slug".

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

@return string
Get the formatted error message .