webbingbrasil/filament-advancedfilter
AND, OR, nested conditions).QueryBuilder methods (e.g., where, orWhere) remain intact.OR conditions) may generate verbose SQL. Performance impact should be tested with large datasets or complex joins.nullsAreUnknown, etc.) requires explicit configuration, which could be overlooked.AND/OR clauses)?DateFilter with timezone-aware timestamps?where clauses (e.g., multi-condition dashboards, audit logs, or inventory systems).SelectFilter, DateRangeFilter).AdvancedFilter adds value.Order model) to test BooleanFilter and DateFilter.AdvancedFilter components.// Example: Replace a custom query builder with AdvancedFilter
public static function getFilters(): array
{
return [
BooleanFilter::make('is_active')
->nullsAreFalse()
->label('Active Status'),
DateFilter::make('created_at')
->label('Created Date')
->range(),
];
}
Mongock).filament-spatie-laravel-media-library) for UI overlaps.composer require webbingbrasil/filament-advancedfilter "^3.0"
php artisan vendor:publish --tag="filament-advancedfilter-translations" # Optional
AppServiceProvider or resource classes to include filters.3.0.x) are likely safe; major versions require testing.webbingbrasil/filament-advancedfilter to a specific patch version (e.g., ^3.0.1) to avoid surprises.composer why-not to track Filament version constraints.JsonFilter), maintain a separate branch or fork.toSql() and ->dd() to inspect generated queries.livewire.log for JavaScript errors in filter interactions.nullsAreUnknown() behavior matches business logic (e.g., "unknown" vs. "excluded").Filament\Tables\Table::paginate(20)).remember() in Livewire).| Scenario | Impact | Mitigation |
|---|---|---|
| Filament 3.x breaking change | Filters stop working | Pin to a stable Filament minor version |
| Unhandled null values | Silent data exclusion | Explicitly configure nullsAreX() |
Nested OR clauses |
Performance degradation | Limit depth; use should()/shouldNot() sparingly |
| UI rendering errors | Broken filter dropdowns | Check browser console for Livewire errors |
| Database schema changes | Filter columns become stale | Use migrations to align schema/filter definitions |
BooleanFilter, DateFilter).How can I help you explore Laravel packages today?