\App\Api\Request\DB\OfferProcessImages

Classes can make use of this trait to be able to process images based on their requested order.

Summary

Methods
Properties
Constants
No public methods found
No public properties found
No constants found
processImages()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

processImages()

processImages(\App\Offer  $offer, array  $imageOrder, \Illuminate\Http\UploadedFile|array<mixed,\Illuminate\Http\UploadedFile>  $newImages, boolean  $handleExisting) 

Remove old images, save new and reorder them.

Parameters

\App\Offer $offer
array $imageOrder
\Illuminate\Http\UploadedFile|array<mixed,\Illuminate\Http\UploadedFile> $newImages
boolean $handleExisting

Throws

\Exception