howdu/filament-record-switcher
Widget interface (e.g., RecordSwitcher::make()). Minimal backend hooks (e.g., query customization via query method).composer require howdu/filament-record-switcher
php artisan vendor:publish --tag="filament-record-switcher-config"
use Howdu\FilamentRecordSwitcher\Widgets\RecordSwitcher;
RecordSwitcher::make()
->query(fn (Builder $query) => $query->where('active', true))
->searchable(['name', 'email']);
spatie/laravel-filament-resource-tablefilament/spatie-laravel-medialibrary!important sparingly.__() helper.User table) with default config.RecordSwitcher updates (check changelog).->query(fn (Builder $query) => $query->toSql())
filament:debug) to inspect widget rendering.query method and database indexes.// Custom Alpine.js logic
debounce(() => { /* search */ }, 300)
Cache::remember).| Failure Scenario | Impact | Mitigation |
|---|---|---|
| Database query timeout | Search hangs | Add ->limit(100) or pagination. |
| Missing indexes | Slow searches | Add indexes to searchable fields. |
| Filament version mismatch | Widget breaks | Pin howdu/filament-record-switcher to a version. |
| JavaScript errors | UI breaks | Wrap Alpine.js in error boundaries. |
| Permission denied on records | Inconsistent UI state | Validate records in query method. |
How can I help you explore Laravel packages today?