Provide a filter by seconds, minutes, hours, days, weeks, months, quarter, years, decades and millenniums for table.
At first, this package depends on laravel date scops. Please read the laravel date scops document and prepare your model(s) to be filtered by date scopes.
You can install the package via composer:
composer require aymanalhattami/filament-date-scopes-filter
use AymanAlhattami\FilamentDateScopesFIlter\DateScopeFilter;
// ...
public static function table(Table $table): Table
{
return $table
->filters([
DateScopeFilter::make('created_at'),
])
// ...
}
// ...
Publish the translations using:
php artisan vendor:publish --tag="filament-date-scopes-filter-translations"
Please see CHANGELOG for more information what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.
This package was generated using the Laravel Package Boilerplate.