Overtrue\Validation\Validator::hasRule PHP Méthode

hasRule() protected méthode

Determine if the given attribute has a rule in the given set.
protected hasRule ( string $attribute, string | array $rules ) : boolean
$attribute string
$rules string | array
Résultat boolean
    protected function hasRule($attribute, $rules)
    {
        return !is_null($this->getRule($attribute, $rules));
    }
Validator