Merge pull request #1530 from tempestim/master
Fix for validate_required_with
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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user