ctessier / nova-advanced-image-field

🌄 📐 A Laravel Nova advanced image field with cropping and resizing using Vue Advanced Cropper and Intervention Image
https://novapackages.com/packages/ctessier/nova-advanced-image-field
MIT License
100 stars 26 forks source link

Is there a method to have multipul images per record? #78

Closed dan-lutd closed 2 years ago

dan-lutd commented 2 years ago

I am using the plugin for an image per record and now have to save multipule images per record. Is there a way with this plugin to do that?

ctessier commented 2 years ago

Hi @dan-lutd

If it fits your need, you can set multiple AdvancedImage fields to your resource:

AdvancedImage::make('Photo 1');
AdvancedImage::make('Photo 2');
AdvancedImage::make('Photo 3');

If you want to upload multiple times the same image, you can have a look at #59, an already ongoing discussion.

Hoping this helps. Clément

dan-lutd commented 2 years ago

Thanks , I like the feature that you add the filepath to the resource's table, And that feature would be complicated by storing data for many files.

Still for single images having the filepath in the table makes things very simple for allowing another program to read the same data. In my case a node/sequelize program servers the data elsewhere.