How to use filament table when record key is not an integer?

I published the sessions table.

I created a filament resource for the sessions table.

The issue comes when i try to delete multiple rows via it's table. It just deletes them all.

I guess this is because the sessions table doesn't have a "regular id" field, but instead has a id varchar column type. ($table->string('id')->primary();)

So seems filament expect the id to be an integer, and somehow cant handle it and selects all the records in the table.

Im not sure if the table record key can be changed or what should i do to make it work

in all my other resources, bulk actions just work fine, is just with this table, which has the id primary key not integer
Was this page helpful?