F
Filament2mo ago
Eskie

Reorderable Table not working

I followed https://filamentphp.com/docs/3.x/tables/advanced#reordering-records but it seems adding ->reorderable('sort') alone doesn't work.. you need to add ->authorizeReorder() in order for the sort button to show which is not stated in the docs..
6 Replies
Mohamed Ayaou
Mohamed Ayaou2mo ago
I don't use ->authorizeReorder() at all and it works fine. can you try on a fresh new resource' table And do you have any kind of Permissions/Roles system in the laravel project that may cause such issues?
awcodes
awcodes2mo ago
My guess is something is missing in a policy. The reason for that method not being in the docs would be that it is an internal method and not meant to be used unless it is necessary for particular use cases.
Eskie
EskieOP2mo ago
im using Shield plugin.. isn't that enough to add on the docs?
awcodes
awcodes2mo ago
I lean towards no because it’s laravel specific and not filament specific.
Eskie
EskieOP2mo ago
oh i see..
awcodes
awcodes2mo ago
Like should next provide documentation for react specifics. There is a level of understanding of the underlying framework that is expected knowledge.

Did you find this page helpful?