© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•4mo ago•
8 replies
Will Aguilar

TextEntry default configuration

How can I setup global configurations for the TextEntry. I want to add default date format and other properties,

TextEntry::make('updated_at')
    ->label('general.updated_at')
    ->dateTime('d/m/Y h:i')
TextEntry::make('updated_at')
    ->label('general.updated_at')
    ->dateTime('d/m/Y h:i')
Solution
if you want all date times to use that format you can configure the Schema component.

Schema::configureUsing(function (Schema $schema): void {
    $schema->defaultDateTimeDisplayFormat('m/d/Y H:i');
});
Schema::configureUsing(function (Schema $schema): void {
    $schema->defaultDateTimeDisplayFormat('m/d/Y H:i');
});
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

TextEntry bulleted()
FilamentFFilament / ❓┊help
2y ago
Infolist TextEntry
FilamentFFilament / ❓┊help
2y ago
TextEntry url
FilamentFFilament / ❓┊help
3y ago
Mask for TextEntry
FilamentFFilament / ❓┊help
9mo ago