guessExtension(), $supportedMimes); } public function __construct(private UploadedFile $file, private Album $location) { } public function import(): array { $image = ImageModel::create([ 'album_id' => $this->location->id ]); $imageId = $image->id; return [ new ImportImage($this->file->getPathname(), $image), new GenerateFullscreen($image), new GenerateThumbnail($image), ]; } }