Overtrue\Validation\Validator::anyFailingRequired PHP Method

anyFailingRequired() protected method

Determine if any of the given attributes fail the required test.
protected anyFailingRequired ( array $attributes ) : boolean
$attributes array
return boolean
    protected function anyFailingRequired(array $attributes)
    {
        foreach ($attributes as $key) {
            if (!$this->validateRequired($key, $this->getValue($key))) {
                return true;
            }
        }
        return false;
    }
Validator