F
Filament12mo ago
lodeki

Display images stored as array in ImageColumn

My images are stored as array ["image.png","image2.png"] . I want to show them in the ImageColumn() like so
ImageColumn::make('partners.attachments')->stacked()->seperator(',')
ImageColumn::make('partners.attachments')->stacked()->seperator(',')
but i face the array to string conversion error.
2 Replies
EL REKT
EL REKT4mo ago
@lodeki you solve the problem ?
toeknee
toeknee4mo ago
So it should be more like:
ImageColumn::make('partners.attachments.image')->stacked()->seperator(',')
ImageColumn::make('partners.attachments.image')->stacked()->seperator(',')
Which returns the image, the column will loop through the attachements relationship array
Want results from more Discord servers?
Add your server