VolumeFileUnique
class VolumeFileUnique implements Rule
Properties
protected Collection | $files | The filenames that already exist. |
|
protected Volume | $volume | The volume to check for existing files. |
Methods
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.
at line 41
bool
passes(string $attribute, array $value)
Check if the given filenames don't already exist in the volume.
at line 55
string
message()
Get the validation error message.