tapp/filament-value-range-filter
filament/filament (≥4.0), PHP 8.1+.RangeFilter::make() (fluent API), range() column modifier.| Risk Area | Severity | Mitigation Strategy |
|---|---|---|
| Filament Version Lock | High | Pin to ^2.0 in composer.json; monitor Filament 5.x BC breaks. |
| Localization Gaps | Medium | Publish translations if multilingual support is critical. |
| Performance | Low | Range queries are delegated to the database (no client-side overhead). |
| Custom Validation | Medium | May require custom logic for non-standard range rules (e.g., dynamic bounds). |
BETWEEN vs. full-table scans)?Filter polyfill or custom widgets).price, created_at).composer require tapp/filament-value-range-filter:"^2.0"
php artisan vendor:publish --tag="filament-value-range-filter-translations" # Optional
use Tapp\FilamentValueRangeFilter\Column\RangeColumn;
RangeColumn::make('price')->range();
use Tapp\FilamentValueRangeFilter\Filters\RangeFilter;
RangeFilter::make('created_at')->label('Date Range');
1.x branch (deprecated; migrate if possible).getRangeOptions() in the filter/column class.1.x; migrate to 2.x if upgrading Filament.VARCHAR instead of DECIMAL).Carbon consistently).debug:table command to inspect filter queries.LOG_QUERIES in Laravel) to analyze BETWEEN performance.BETWEEN) can be inefficient on unindexed columns.ALTER TABLE orders ADD INDEX idx_price_range (price)).WHERE created_at BETWEEN ...).| Scenario | Impact | Recovery Strategy |
|---|---|---|
| Package Update Breaks BC | High (Filament 5.x) | Pin to ^2.0.0; fork if critical. |
| Invalid Range Input | Medium (UI/UX) | Add client-side validation (e.g., min < max). |
| Database Index Missing | High (Performance) | Add indexes; optimize queries. |
| Localization Missing | Low (UX) | Publish translations or override labels. |
| Filament Cache Issues | Medium (Stale Data) | Clear cache (php artisan cache:clear). |
Filter polyfill.How can I help you explore Laravel packages today?