class CreateNewImagesOrVideos extends Job implements ShouldQueue

Traits

InteractsWithQueue
SerializesModels
Queueable
Dispatchable

Properties

Volume $volume

The volume to create the files for.

array $filenames

The filenames of the files to create.

array $metadata

Metadata of the files to add during creation.

Methods

void
__construct(Volume $volume, array $filenames)

Create a new job instance.

handle()

Execute the job.

array
createFiles(array $filenames, VolumeMetadata|null $metadata)

Create an array to be inserted as new image or video models.

Details

at line 48
void __construct(Volume $volume, array $filenames)

Create a new job instance.

Parameters

Volume $volume

The volume to create the files for.

array $filenames

The filenames of the files to create.

Return Value

void

at line 60
handle()

Execute the job.

Exceptions

QueryException

at line 106
protected array createFiles(array $filenames, VolumeMetadata|null $metadata)

Create an array to be inserted as new image or video models.

Parameters

array $filenames
VolumeMetadata|null $metadata

Return Value

array