Adding Image next to TextColumn
Hello,
I want to add an image before a TextColumn
(I am currently handling medias with Spatie package)
My current code is :
This code create a separate Column, I want to "group" the two columns
Please see picture below to see what I want to achieve
Could you suggest how to do this ?
Thank you
6 Replies
One way to resolve this is to add a new
TextColumn::make('image')
->label('Image')
->state(function ($record) {
return $record->image_path;
})
Have you tried using formatstateusing() ?
Not sure if it's work with image
It prints out the url of the image as string
I don't have any other ideas, have you tried to reserved it ? But I doubt it will work in image column
custom column?
Well then just wrap it in a image tag.