class AvatarValidator extends AbstractValidator

Properties

protected callable[] $configuration from AbstractValidator
protected array $rules from AbstractValidator
protected $laravelValidator

Methods

__construct(Factory $validator, TranslatorInterface $translator, ImageManager $imageManager)

No description

void
addConfiguration(callable $callable)

No description

void
assertValid(array $attributes)

<p>Throw an exception if a model is not valid.</p>

array
getRules()

No description

array
getMessages()

No description

Validator
makeValidator(array $attributes)

No description

void
assertFileRequired(UploadedFileInterface $file)

No description

void
assertFileMimes(UploadedFileInterface $file)

No description

void
assertFileSize(UploadedFileInterface $file)

No description

void
raise(string $error, array $parameters = [], string $rule = null)

No description

int
getMaxSize()

No description

array
getAllowedTypes()

No description

Details

__construct(Factory $validator, TranslatorInterface $translator, ImageManager $imageManager)

Parameters

Factory $validator
TranslatorInterface $translator
ImageManager $imageManager

void addConfiguration(callable $callable)

Parameters

callable $callable

Return Value

void

void assertValid(array $attributes)

<p>Throw an exception if a model is not valid.</p>

Parameters

array $attributes

Return Value

void

protected array getRules()

Return Value

array

protected array getMessages()

Return Value

array

protected Validator makeValidator(array $attributes)

Parameters

array $attributes

Return Value

Validator

protected void assertFileRequired(UploadedFileInterface $file)

Parameters

UploadedFileInterface $file

Return Value

void

protected void assertFileMimes(UploadedFileInterface $file)

Parameters

UploadedFileInterface $file

Return Value

void

protected void assertFileSize(UploadedFileInterface $file)

Parameters

UploadedFileInterface $file

Return Value

void

protected void raise(string $error, array $parameters = [], string $rule = null)

Parameters

string $error
array $parameters
string $rule

Return Value

void

protected int getMaxSize()

Return Value

int

protected array getAllowedTypes()

Return Value

array