Commit dcc56493 authored by James Spibey's avatar James Spibey

validate_required_with fix

parent f25d09dd
......@@ -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);
}
......
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