Commit f8dbe4cd authored by Taylor Otwell's avatar Taylor Otwell

Merge pull request #1530 from tempestim/master

Fix for validate_required_with
parents b69e649a dcc56493
...@@ -269,8 +269,9 @@ class Validator { ...@@ -269,8 +269,9 @@ class Validator {
protected function validate_required_with($attribute, $value, $parameters) protected function validate_required_with($attribute, $value, $parameters)
{ {
$other = $parameters[0]; $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); return $this->validate_required($attribute, $value);
} }
......
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