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 Ayaou2w 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
awcodes2w 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
EskieOP7d ago
im using Shield plugin.. isn't that enough to add on the docs?
awcodes
awcodes7d ago
I lean towards no because it’s laravel specific and not filament specific.
Eskie
EskieOP7d ago
oh i see..
awcodes
awcodes7d ago
Like should next provide documentation for react specifics. There is a level of understanding of the underlying framework that is expected knowledge.
Want results from more Discord servers?
Add your server