© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
3 replies
giuszeppe

ImageColumn not setting src attributes

TextColumn::make("id")
    ->label("ID"),
TextColumn::make("name")
    ->label("Nome"),
TextColumn::make("real_price")
    ->money('EUR')
    ->label("Prezzo"),
ImageColumn::make('image_path')
    ->getStateUsing(fn (Product $product) => $product->image_path)
    ->defaultImageUrl('/assets/images/default.png')
    ->label('Immagine')
TextColumn::make("id")
    ->label("ID"),
TextColumn::make("name")
    ->label("Nome"),
TextColumn::make("real_price")
    ->money('EUR')
    ->label("Prezzo"),
ImageColumn::make('image_path')
    ->getStateUsing(fn (Product $product) => $product->image_path)
    ->defaultImageUrl('/assets/images/default.png')
    ->label('Immagine')

I have this code and I'm trying to display an image using imageColumn. The issue is that no src is being set in the image in the HTML and I really don't know how to debug it.
When dumping the values in
getStateUsing
getStateUsing
the value of the path is correct, however, it is not being set on the html as you can see:
<img src="" style="height: 2.5rem;" class="max-w-none object-cover object-center ring-white dark:ring-gray-900">
<img src="" style="height: 2.5rem;" class="max-w-none object-cover object-center ring-white dark:ring-gray-900">

I have no idea on how to debug it, I'm using Filament v3.2.92
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

ImageColumn
FilamentFFilament / ❓┊help
3y ago
ImageColumn / DefaultImage not showing
FilamentFFilament / ❓┊help
6mo ago
ImageColumn not displaying .png
FilamentFFilament / ❓┊help
2y ago
ImageColumn is not showing image
FilamentFFilament / ❓┊help
2y ago