Update laravel/validator.php
Fix: Replace :other with Validation Attributes (from validation.php in language folder)
This commit is contained in:
parent
d2fefa65aa
commit
6a8a3bca2b
|
@ -972,7 +972,7 @@ protected function replace_mimes($message, $attribute, $rule, $parameters)
|
|||
*/
|
||||
protected function replace_same($message, $attribute, $rule, $parameters)
|
||||
{
|
||||
return str_replace(':other', $parameters[0], $message);
|
||||
return str_replace(':other', $this->attribute($parameters[0]), $message);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -986,7 +986,7 @@ protected function replace_same($message, $attribute, $rule, $parameters)
|
|||
*/
|
||||
protected function replace_different($message, $attribute, $rule, $parameters)
|
||||
{
|
||||
return str_replace(':other', $parameters[0], $message);
|
||||
return str_replace(':other', $this->attribute($parameters[0]), $message);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue