class VolumeImageUnique implements Rule

Properties

protected Collection $images The filenames of the images that already exist.
protected Volume $volume The volume to check for existing images.

Methods

__construct(Volume $volume)

Create a new instance.

bool
passes(string $attribute, array $value)

Check if the given image filenames don't already exist in the volume.

string
message()

Get the validation error message.

Details

at line 29
__construct(Volume $volume)

Create a new instance.

Parameters

Volume $volume

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

Check if the given image filenames don't already exist in the volume.

Parameters

string $attribute
array $value

Return Value

bool

at line 55
string message()

Get the validation error message.

Return Value

string