class VolumeImageUnique implementsRule

Properties

protectedCollection $images The filenames of the images that already exist.
protectedVolume $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 line29
__construct(Volume$volume)

Create a new instance.

Parameters

Volume $volume

at line41
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 line55
string message()

Get the validation error message.

Return Value

string