src/Services/UploadsService.php
/**
     * Store new image upload meta data in database.
     *
     * @param int|null $blogPostID
     * @param string $imageTitle
     * @param string $source
     * @param int|null $uploaderID
     * @param array $uploadedImages
     *
     * @return UploadedPhoto
     */
Store new image upload meta data in database.


Store new image upload meta data in database .
protected function storeInDatabase(
        ?int $blogPostID,
        string $imageTitle,
        string $source,
        ?int $uploaderID,
        array $uploadedImages
    ): UploadedPhoto {
        return $this->repository->create([
            'blog_etc_post_id' => $blogPostID,
            'image_title' => $imageTitle,
            'source' => $source,
            'uploader_id' => $uploaderID,
            'uploaded_images' => $uploadedImages,
        ]);
    }
protected function storeInDatabase ( ? int $ blogPostID , string $ imageTitle , string $ source , ? int $ uploaderID , array $ uploadedImages ) : UploadedPhoto { return $ this -> repository -> create ( [ 'blog_etc_post_id' => $ blogPostID , 'image_title' => $ imageTitle , 'source' => $ source , 'uploader_id' => $ uploaderID , 'uploaded_images' => $ uploadedImages , ] ) ; }
Store new image upload meta data in database.
Store new image upload meta data in database .
// store the image upload.