F
Filament13mo ago
urbycoz

Placeholder text does not appear for NULL values

In this infolist I've got two fields: TextEntry::make('name')->placeholder('Not Completed'), TextEntry::make('gender')->placeholder('Not Completed') When the varchar name is set as EMPTY in the postgresql DB then the placeholder appears ok. However when the enum gender is set as NULL in the DB the placeholder does not appear.
2 Replies
toeknee
toeknee13mo ago
->nullable() ?
urbycoz
urbycozOP13mo ago
Make the field nullable in the database?
Want results from more Discord servers?
Add your server