Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Filament Db Table State Laravel Package

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.

View on GitHub
Deep Wiki
Context7
v1.0.2

Fixed

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.

v1.0.1

Fixed

  • One row per table under multi-tenancy. 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.

Upgrade

  • Rows written by 1.0.0 use the old hash-based 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.
v1.0.0

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.

  • Global Livewire hook — zero per-table setup
  • One row per user per table
  • auto_enable_persistence to cover every table at once
  • Configurable storage table, user column and auth guard
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
terminal42/code-quality-tools
codifyo/ts-generator-bundle
andydefer/laravel-cluster
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky