Date Scopes Filter
CommunityProvide a filter by seconds, minutes, hours, days, weeks, months, quarter, years, decades and millenniums for table.
filament/
namespace. Review the source and install at your own risk. Found
malware or an unresolved security issue the author won't
address?
Report it
.
Author:
Ayman Alhattami
Documentation
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'),
])
// ...
}
// ...
#More configuration
use AymanAlhattami\FilamentDateScopesFIlter\DateScopeFilter;
// ...
public static function table(Table $table): Table
{
return $table
->filters([
DateScopeFilter::make('created_at')
->withoutSeconds() // ex
->withoutMinutes()
->withoutHours()
->withoutDays()
->withoutWeeks()
->withoutMonths()
->withoutQuarters()
->withoutYears()
->withoutDecades()
->withoutCenturies()
->withoutMillenniums(),
])
// ...
}
// ...
#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.
The author
From the same author
Page with Sidebar
Organize resource pages in the sidebar to make navigation between resource pages more comfortable.
Author:
Ayman Alhattami
Context Menu
Customizable context menu (right click menu) for your app.
Author:
Ayman Alhattami
Slim Scrollbar
A simple package to make the application's scrollbars slim.
Author:
Ayman Alhattami
Featured Plugins
A selection of plugins curated by the Filament team
Blueprint
Filament Blueprint is a premium Laravel Boost extension that helps AI agents produce accurate, detailed implementation plans and security reports for Filament apps.
Filament
Advanced Tables (formerly Filter Sets)
Supercharge your tables with powerful features like user-customizable views, quick filters, multi-column sorting, advanced table searching, convenient view management, and more. Compatible with Resource Panel Tables, Relation Managers, Table Widgets, and Table Builder!
Kenneth Sese
Custom Fields
Eliminate custom field migrations forever. Let your users create and manage form fields directly in Filament admin panels with 20+ built-in field types, validation, and zero database changes.
Relaticle