aymanalhattami/filament-date-scopes-filter
Pros:
Cons:
laravel-date-scopes persists (dependency remains a prerequisite).laravel-date-scopes.DateScopeFilter classes).laravel-date-scopes.| Risk Area | Severity | Mitigation Strategy |
|---|---|---|
| Dependency conflicts | Medium | Test with laravel-date-scopes v2+ |
| Refactoring side effects | Low | Review PR #24 for method signature changes; test custom implementations |
| Performance overhead | Medium | Benchmark with large datasets (>100K records) |
| UI customization limits | Low | Extend via Filament’s widget overrides |
| Backend compatibility | High | Validate with Laravel 10.x+ |
laravel-date-scopes? (If not, estimate backfill effort.)scoped() to model queries.)DateScopeFilter methods.)laravel-date-scopes v2+.laravel-date-scopes and configure models (e.g., add scopes trait).filament/filament).composer require aymanalhattami/filament-date-scopes-filter:^2.0
(Note: Updated to ^2.0 to leverage refactored methods.)php artisan vendor:publish --provider="AymanAlhattami\FilamentDateScopesFilter\FilamentDateScopesFilterServiceProvider"
use AymanAlhattami\FilamentDateScopesFilter\Columns\DateScopesFilterColumn;
DateScopesFilterColumn::make('created_at')
->scopes(['today', 'this_week', 'custom_range'])
DateScopeFilter.| Component | Compatibility Notes |
|---|---|
| Laravel | Tested with 10.x; may require adjustments for 11.x (if released). |
| Filament | Optimized for v3.x; check for breaking changes in v4.x. |
laravel-date-scopes |
Requires v2+; ensure model scopes are compatible (e.g., ScopeToday). |
| PHP | Requires ^8.1; no known issues with 8.2+. |
| Refactored Methods | Low risk of breaking changes, but custom implementations should be validated. |
scoped() to models) if performance is degraded.laravel-date-scopes remains stable.laravel-date-scopes may require re-testing.1.x if refactoring introduces issues.laravel-filters for broader flexibility.scoped() or eager loading.
withScopes() to model queries or use query caching.| Scenario | Impact | Mitigation |
|---|---|---|
laravel-date-scopes breaking change |
High (filter breaks) | Pin dependency version |
| Custom scope misconfiguration | Medium (filter fails) | Validate scopes in tests; review refactored methods |
| Large dataset timeouts | High (UI hangs) | Add query timeouts/optimizations |
| Filament version incompatibility | Medium (UI breaks) | Test with CI matrix |
| Refactoring-induced bugs | Medium | Re-test custom implementations |
laravel-date-scopes syntax (e.g., ScopeToday).DateScopeFilter methods for custom extensions.How can I help you explore Laravel packages today?