diff --git a/laravel/validator.php b/laravel/validator.php index ab446860..94d691b5 100644 --- a/laravel/validator.php +++ b/laravel/validator.php @@ -269,8 +269,9 @@ protected function validate_required($attribute, $value) 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); }