Commit 423be049 authored by Taylor Otwell's avatar Taylor Otwell

Merge branch 'master' into develop

parents 912f4e5e 731cec24
......@@ -14,6 +14,6 @@ return array(
*/
'previous' => '« Sebelumnya',
'next' => 'Selanjutnya »',
'next' => 'Berikutnya »',
);
\ No newline at end of file
);
......@@ -18,7 +18,7 @@ return array(
|
*/
"accepted" => "O :attribute deve ser aceito.",
"accepted" => "O :attribute deve ser aceite.",
"active_url" => "O :attribute não é uma URL válida.",
"after" => "O :attribute deve ser uma data após :date.",
"alpha" => "O :attribute só pode conter letras.",
......
......@@ -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);
}
/**
......
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