Overtrue\Validation\Validator::replaceSame PHP Method

replaceSame() protected method

Replace all place-holders for the same rule.
protected replaceSame ( string $message, string $attribute, string $rule, array $parameters ) : string
$message string
$attribute string
$rule string
$parameters array
return string
    protected function replaceSame($message, $attribute, $rule, $parameters)
    {
        return str_replace(':other', $this->getAttribute($parameters[0]), $message);
    }
Validator