Commit 6a8a3bca authored by Nimit Suwannagate's avatar Nimit Suwannagate

Update laravel/validator.php

Fix: Replace :other with Validation Attributes (from validation.php in language folder)
parent d2fefa65
......@@ -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);
}
/**
......
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