class CreateNewImages extendsJob implementsShouldQueue

Traits

InteractsWithQueue
SerializesModels
Queueable
Dispatchable

Properties

Volume $volume The volume to create the images for.
array $filenames The filenames of the images to create.

Methods

void
__construct(Volume$volume,array$filenames)

Create a new job instance.

handle()

Execute the job.

array
createImages(array$filenames)

Create an array to be inserted as new image models.

Details

at line40
void __construct(Volume$volume,array$filenames)

Create a new job instance.

Parameters

Volume $volume The volume to create the images for.
array $filenames The filenames of the images to create.

Return Value

void

at line52
handle()

Execute the job.

Exceptions

QueryException If there was an error creating the images (e.g. if there were duplicate filenames).

at line84
protectedarray createImages(array$filenames)

Create an array to be inserted as new image models.

Parameters

array $filenames New image filenames.

Return Value

array