validate_required_with fix
This commit is contained in:
parent
f25d09dd07
commit
dcc5649318
|
@ -269,8 +269,9 @@ protected function validate_required($attribute, $value)
|
||||||
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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue