Skip to content

Provide a filter by seconds, minutes, hours, days, weeks, months, quarter, years, decades and millenniums for table.

License

Notifications You must be signed in to change notification settings

aymanalhattami/filament-date-scopes-filter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Filament Date Scopes Filter

Latest Version on Packagist Total Downloads

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'),
        ])
    // ...
}
// ...

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.

About

Provide a filter by seconds, minutes, hours, days, weeks, months, quarter, years, decades and millenniums for table.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages