© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•5mo ago•
3 replies
frame

ImageEntry default text instead of default image?

Is there an easy way to display an endash for missing images? I was thinking something like this but I'm curious if theres an easier way, something I could define once with
configureUsing
configureUsing

ImageEntry::make('image')
    ->label('Image')
    ->visible(fn ($state) => $state !== null),
TextEntry::make('image')
    ->label('Image')
    ->state('–')
    ->visible(fn ($record) => $record->image === null),
ImageEntry::make('image')
    ->label('Image')
    ->visible(fn ($state) => $state !== null),
TextEntry::make('image')
    ->label('Image')
    ->state('–')
    ->visible(fn ($record) => $record->image === null),
Solution
ImageEntry::make('image')
    ->label('Image')
    ->placeholder('–'),
ImageEntry::make('image')
    ->label('Image')
    ->placeholder('–'),
Jump to solution
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

ImageEntry Zoom Image
FilamentFFilament / ❓┊help
6mo ago
ImageEntry does not display images
FilamentFFilament / ❓┊help
2y ago
Zoom ImageEntry
FilamentFFilament / ❓┊help
2y ago
ImageEntry preview
FilamentFFilament / ❓┊help
3y ago