kisame76/filament-db-table-state
Persist Filament table state (filters, sorting, search, pagination) in the database so users keep their preferred view between visits. Lightweight Laravel package for per-user table preferences across resources and sessions.
Clearing a slice of table state is now persisted. Resetting a sort back to default (Filament stores null under the sort session key, and Laravel's session()->has() reports false for null) meant snapshot() never saw the change, while its array_merge could only add or overwrite — never remove. The previously saved sort lingered in the database and was re-seeded on the next request, so sorting could not be cleared. snapshot() now removes any managed key that is absent or null in the session, while leaving keys it does not manage (e.g. another tenant's filters) untouched. The same fix applies to clearing filters, search and per-page.
table_key is now the table's Livewire component class (FQCN) instead of a prefix derived from the filters session key. Filament hashes the filters key per tenant (md5(class|tenant)) but every other key per class (md5(class)), so the old derivation created a separate row per tenant and mixed key prefixes inside state. As a bonus, rows are now human-readable in the database.table_key and are simply ignored after upgrading. Clean them up with DELETE FROM table_states; — state re-saves on next use. Live sessions still carry the old session state until users log out or the session expires.Initial release.
Persist Filament table state — filters, sort, search and column layout — per user in the database, so it survives new sessions and follows users across devices.
auto_enable_persistence to cover every table at onceHow can I help you explore Laravel packages today?