TextEntry default configuration
How can I setup global configurations for the TextEntry. I want to add default date format and other properties,
Solution:Jump to solution
if you want all date times to use that format you can configure the Schema component.
```php
Schema::configureUsing(function (Schema $schema): void {
$schema->defaultDateTimeDisplayFormat('m/d/Y H:i');...
5 Replies
When working with dates I think it tries to apply that to every single TextEntry. This is what I'm doing
And I get the following error:
Not doing anything special. Just trying to render the tradicional
updated_at from recordsah, do you only need it in a few places or do you want all dates in filament to have that format?
if it's not global you can just create your own 'DateTimeTextEntry' etc the extends the 'TextEntry' and use that instead.
Solution
if you want all date times to use that format you can configure the Schema component.
@awcodes you are the best thank you 🫶