F
Filament12mo ago
Tieme

Better way to manage default formats?

Hi All, I use filament with different locals. Some default dateformats are defined in following classes
Filament\Infolists\Infolist
Filament\Forms\Components\DateTimePicker
Filament\Tables\Table
Filament\Infolists\Infolist
Filament\Forms\Components\DateTimePicker
Filament\Tables\Table
At this moment i'm changing the formats of these configurations in AppServiceProvider (Code below) Now i want to know if there is a better way to manage these settings, this because when filament updates some additional $defaults can be added that are not in my AppServiceProvider Url to code : https://gist.github.com/sitenzo/a29807e72d38310a5a04f18e3d99f0dd
Solution:
because when filament updates some additional $defaults can be added that are not in my AppServiceProvider
That's why I never run composer update without first inspecting the code that's been changed since the last release I updated to. Then you can make whatever applicable changes are needed to your own app....
Jump to solution
2 Replies
Solution
DrByte
DrByte11mo ago
because when filament updates some additional $defaults can be added that are not in my AppServiceProvider
That's why I never run composer update without first inspecting the code that's been changed since the last release I updated to. Then you can make whatever applicable changes are needed to your own app.
DrByte
DrByte11mo ago
(Easiest way to inspect it is in github's Releases page, and click the Compare dropdown, pick the version, and then review all the code changes.) (You learn a lot about Fillament's inner workings that way too!)
Want results from more Discord servers?
Add your server