GalleryField
Lets you upload multiple images and order them.
Requirements
- Add a JSON column to store your data
- Add your field name to
fillableon your model Make your field to
castson your model:'gallery_orderable' => 'array',
Getting images on the front end.
Add the HasGalleryFields trait to your model. Then get a collection of Image files:
$my_model->getGalleryImages('my_gallery_field_name')