webbingbrasil/filament-datefilter
Pros:
useColumn(), range(), and global configuration.Cons:
whereBetween) must be compatible with your ORM (Eloquent/Livewire).From/Until) beyond __() placeholders?DatePicker in Filament 3.x).whereDate() queries).created_at, published_at).filament-datefilter to validate UX and performance.FilamentPanel or service provider.// app/Providers/Filament/DateFilterServiceProvider.php
public function boot(): void
{
DateFilter::configureUsing(fn ($filter) =>
$filter->fromLabel(__('Start Date'))->untilLabel(__('End Date'))
);
}
make() methods.whereBetween queries are optimized (e.g., indexed columns).composer require webbingbrasil/filament-datefilter.getTableFilters()).range() for date ranges").composer.json to avoid surprises.dev-main branch.DateFilter class) for custom logic.DatePicker in Filament 3.x as a fallback.created_at).OR conditions in filters; use whereBetween for ranges.cacheFor) may interact with dynamic filters.| Failure Scenario | Impact | Mitigation |
|---|---|---|
| Filament major version update breaks compatibility | Filters stop working. | Fork the package or switch to Filament’s native filters. |
| Timezone misconfiguration | Incorrect date ranges. | Validate timezone handling in tests. |
| Unindexed filtered columns | Slow queries. | Add database indexes or use select() to limit columns. |
| JavaScript errors in date picker | UX breakdown. | Test in target browsers; override CSS if needed. |
| Package abandonment | Security/bug risks. | Fork and maintain internally. |
created_at vs. published_at").filament-datefilter").How can I help you explore Laravel packages today?