rappasoft/laravel-livewire-tables
Laravel Livewire Tables provides dynamic, feature-rich data tables for Laravel Livewire with sorting, searching, filtering, pagination, bulk actions, and Bootstrap/Tailwind support. Build reusable table components backed by Eloquent queries.
Date columns provide an easy way to display dates in a given format, without having to use repetitive format() methods or partial views.
You may pass either a DateTime object, in which you can define an "outputFormat"
DateColumn::make('Updated At', 'updated_at')
->outputFormat('Y-m-d H:i:s'),
Or you may pass a string, in which case you can define an "inputFormat" in addition to the outputFormat:
DateColumn::make('Last Charged', 'last_charged_at')
->inputFormat('Y-m-d H:i:s')
->outputFormat('Y-m-d'),
You may also set an "emptyValue" to use when there is no value from the database:
DateColumn::make('Last Charged', 'last_charged_at')
->inputFormat('Y-m-d H:i:s')
->outputFormat('Y-m-d')
->emptyValue('Not Found'),
Please also see the following for other available methods:
How can I help you explore Laravel packages today?