Array of images
Purpose: a group of images with comments, the database stores paths to images and comments in JSON format.
File type in SQL table: text
For this type, the parameters of sizes, extensions and mime types from the type Files and images are relevant.
Implementation examples:
- https://github.com/makscraft/workshop-mv/blob/main/gallery/gallery.model.php
- https://github.com/makscraft/workshop-mv/blob/main/options/options.model.php
- https://github.com/makscraft/workshop-mv/blob/main/catalog/products.model.php
Examples:
['Product photos', 'multi_images', 'pictures']
['Examples of work', 'multi_images', 'portfolio', ['required' => true]]
Previous section
File and image