class VolumeImages implements Rule

Properties

protected string $message The validation message to display.

Methods

__construct()

Create a new instance.

bool
passes(string $attribute, array $value)

Check if an array of image filenames is valid.

string
message()

Get the validation error message.

Details

at line 20
__construct()

Create a new instance.

at line 35
bool passes(string $attribute, array $value)

Check if an array of image filenames is valid.

A valid array is not empty, contains no duplicates and has only images with JPG, PNG or GIF file endings.

Parameters

string $attribute
array $value

Return Value

bool

at line 65
string message()

Get the validation error message.

Return Value

string