class StoreVolumeMetadata extends FormRequest

Properties

Volume $volume

The volume to store the new metadata to.

VolumeMetadata $metadata

The volume metadata after validation.

Methods

bool
authorize()

Determine if the user is authorized to make this request.

array
rules()

Get the validation rules that apply to the request.

void
withValidator(Validator $validator)

Configure the validator instance.

bool
metadataMatchesVolume()

Determine if at least one file of the metadata matches a file of the volume.

Details

at line 33
bool authorize()

Determine if the user is authorized to make this request.

Return Value

bool

at line 45
array rules()

Get the validation rules that apply to the request.

Return Value

array

at line 71
void withValidator(Validator $validator)

Configure the validator instance.

Parameters

Validator $validator

Return Value

void

at line 114
protected bool metadataMatchesVolume()

Determine if at least one file of the metadata matches a file of the volume.

Files in the metadata that don't exist in the volume are ignored, but a metadata file without any match most likely belongs to a different volume.

Return Value

bool