Update laravel/validator.php

Fix: Replace :other with Validation Attributes (from validation.php in language folder)
This commit is contained in:
Nimit Suwannagate
2012-11-23 00:42:55 +07:00
parent d2fefa65aa
commit 6a8a3bca2b

View File

@@ -972,7 +972,7 @@ class Validator {
*/
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 @@ class Validator {
*/
protected function replace_different($message, $attribute, $rule, $parameters)
{
return str_replace(':other', $parameters[0], $message);
return str_replace(':other', $this->attribute($parameters[0]), $message);
}
/**