Merge branch 'master' into develop
This commit is contained in:
@@ -269,8 +269,9 @@ class Validator {
|
||||
protected function validate_required_with($attribute, $value, $parameters)
|
||||
{
|
||||
$other = $parameters[0];
|
||||
$other_value = array_get($this->attributes, $other);
|
||||
|
||||
if ($this->validate_required($other, $this->attributes[$other]))
|
||||
if ($this->validate_required($other, $other_value))
|
||||
{
|
||||
return $this->validate_required($attribute, $value);
|
||||
}
|
||||
@@ -986,7 +987,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);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1000,7 +1001,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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user