class VolumeFileUnique implements Rule

Properties

protected Collection $files

The filenames that already exist.

protected Volume $volume

The volume to check for existing files.

Methods

__construct(Volume $volume)

Create a new instance.

bool
passes(string $attribute, array $value)

Check if the given 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 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