aymanalhattami / filament-date-scopes-filter
Filament Date Scopes Filter
Installs: 7 081
Dependents: 1
Suggesters: 0
Security: 0
Stars: 16
Watchers: 4
Forks: 5
Open Issues: 0
Requires
- php: ^8.1|^8.2|^8.3
- filament/forms: ^3.0
- filament/tables: ^3.0
- laracraft-tech/laravel-date-scopes: ^2.0
- spatie/laravel-package-tools: ^1.0
Requires (Dev)
- laravel/pint: ^1.0
- orchestra/testbench: ^9.0
- pestphp/pest: ^3.0
- pestphp/pest-plugin-laravel: ^3.0
- phpstan/phpstan: ^1.12
README
Provide a filter by seconds, minutes, hours, days, weeks, months, quarter, years, decades and millenniums for table.
Installation
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
Usage
use AymanAlhattami\FilamentDateScopesFIlter\DateScopeFilter; // ... public static function table(Table $table): Table { return $table ->filters([ DateScopeFilter::make('created_at'), ]) // ... } // ...
Translations
Publish the translations using:
php artisan vendor:publish --tag="filament-date-scopes-filter-translations"
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email ayman.m.alhattami@gmail.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
Laravel Package Boilerplate
This package was generated using the Laravel Package Boilerplate.