© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
5 replies
Harvey

TextEntry placeholder not working for related models

TextEntry::make('book.description')
  ->placeholder('None'),
TextEntry::make('book.description')
  ->placeholder('None'),

This should show "None" but is blank.

I can see in
vendor/filament/infolists/resources/views/components/text-entry.blade.php::65
vendor/filament/infolists/resources/views/components/text-entry.blade.php::65
the state get's wrapped, which is causing it to be [ 0 => "" ] which resolves to true when deciding whether or not to show the placeholder.

is this a bug?
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

TextEntry::make()->placeholder() question...
FilamentFFilament / ❓┊help
3y ago
TextEntry as link to related resource
FilamentFFilament / ❓┊help
14mo ago
Placeholder badge color not working
FilamentFFilament / ❓┊help
3y ago
Mask for TextEntry
FilamentFFilament / ❓┊help
9mo ago