Configuration
Theconfig/shopper/media.php file allows you to customize how media files are handled. Below are the available configuration options:
Storage Disk
Specifies the storage disk used to save media files. By default, Shopper uses thepublic disk, but you can change
it to use services like S3, Cloudinary, or other storage systems. Since the file system is based on the Spatie Laravel Media Library,
you also need to define the name of the collection of images and thumbnails for your Models.
Accepts Mime Types
Lists the MIME types allowed for media files. This ensures that only specified file formats can be uploaded. For your need you can add more types.Media Filesize
Sets the maximum allowed file size for media uploads (in kilobytes). This helps control file sizes to avoid performance issues.Image Conversions
Configures image conversions to generate resized or optimized versions of uploaded images. For example, you can create thumbnails or mobile-friendly images.Media Variants
The Spatie Media library supports defining various image sizes, so-called Conversions. The uploaded images will be then converted to the given sizes with the given parameters. For the moment in Shopper for all the Model that’s used Media Library the only conversion available isRetrieving Images
Thumbnail
The presence of thumbnails is a very common scenario, which is why Shopper use them.Images
To get an image with full url on a product, a brand or a collectionAdvanced Customization
If you need further customization, you can configure a custom disk inconfig/filesystems.php and update the config/shopper/media.php configuration.
You can see everything about Storage on the Laravel documentation