Commit 731cec24 authored by Taylor Otwell's avatar Taylor Otwell

Merge pull request #1465 from ethaizone/patch-1

Update laravel/validator.php
parents 14179c88 6a8a3bca
......@@ -973,7 +973,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);
}
/**
......@@ -987,7 +987,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);
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment