abstract class AbstractValidator

Properties

protected array $configuration
protected array $rules
protected Factory $validator
protected TranslatorInterface $translator

Methods

addConfiguration($callable)

No description

__construct(Factory $validator, TranslatorInterface $translator)

No description

assertValid(array $attributes)

Throw an exception if a model is not valid.

array
getRules()

No description

array
getMessages()

No description

Validator
makeValidator(array $attributes)

Make a new validator instance for this model.

Details

addConfiguration($callable)

Parameters

$callable

__construct(Factory $validator, TranslatorInterface $translator)

Parameters

Factory $validator
TranslatorInterface $translator

assertValid(array $attributes)

Throw an exception if a model is not valid.

Parameters

array $attributes

protected array getRules()

Return Value

array

protected array getMessages()

Return Value

array

protected Validator makeValidator(array $attributes)

Make a new validator instance for this model.

Parameters

array $attributes

Return Value

Validator