Orderable method for table subgrouping
https://filamentphp.com/docs/3.x/tables/advanced#reordering-records
Hello everyone. I am interested in whether I can make an order not for all records, but for example the driver_id field should be taken into account. That is, something like grouping by group. For example, there are 3 records with driver_id=1 and 5 records with driver_id=2. Records for driver one should have a field orderable from 1 to 3, and if they are moved, they change places. For driver 2, records 5 and they can also be moved and the field orderable from 1 to 5
1 Reply
I guess your best option is to order only in a Relation Manager.
Or you overwrite the save order logic, and order by driver first, then use the actual order. Not sure whether you'll have enough info for that though.