Overtrue\Validation\Validator::validateRequiredWithAll PHP Method

validateRequiredWithAll() protected method

Validate that an attribute exists when all other attributes exists.
protected validateRequiredWithAll ( string $attribute, mixed $value, mixed $parameters ) : boolean
$attribute string
$value mixed
$parameters mixed
return boolean
    protected function validateRequiredWithAll($attribute, $value, $parameters)
    {
        if (!$this->anyFailingRequired($parameters)) {
            return $this->validateRequired($attribute, $value);
        }
        return true;
    }
Validator