Validator::mergeRules()

$this mergeRules(string $attribute, string|array $rules = array()) Merge additional rules into a given attribute(s). Parameters string $attribute string|array $rules Return Value $this

Validator::isAValidFileInstance()

bool isAValidFileInstance(mixed $value) Check that the given value is a valid file instance. Parameters mixed $value Return Value bool

Validator::invalid()

array invalid() Returns the data which was invalid. Return Value array

Validator::hasRule()

bool hasRule(string $attribute, string|array $rules) Determine if the given attribute has a rule in the given set. Parameters string $attribute string|array $rules Return Value bool

Validator::hasAttribute()

bool hasAttribute(string $attribute) Checks if an attribute exists. Parameters string $attribute Return Value bool

Validator::guessColumnForQuery()

string guessColumnForQuery(string $attribute) Guess the database column from the given attribute name. Parameters string $attribute Return Value string

Validator::getTranslator()

TranslatorInterface getTranslator() Get the Translator implementation. Return Value TranslatorInterface

Validator::getRules()

array getRules() Get the validation rules. Return Value array

Validator::getReplacers()

array getReplacers() Get the array of custom validator message replacers. Return Value array

Validator::getPresenceVerifier()

PresenceVerifierInterface getPresenceVerifier() Get the Presence Verifier implementation. Return Value PresenceVerifierInterface Exceptions RuntimeException