reorder operation questions #908
-
Quoting https://backpackforlaravel.com/docs/6.x/crud-operation-reorder ,
Should any of those have indexes? Also, when I set up a re-orderable CRUD controller Finally, is there any guidance on how to show things in-order using the schema that Laravel Backpack uses outside of Laravel Backpack but still in the context of Laravel? I mean, I recognize that Laravel Backpack is using a nested set hierarchy but I'd just assume use existing code to show stuff in order (eg. pass a sorted collection to a view or some such) rather than re-invent the wheel and write my own code that does that. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hey @terrafrost Just add this clause |
Beta Was this translation helpful? Give feedback.
Hey @terrafrost
Just add this clause
CRUD::orderBy('lft');
insidesetupListOperation()
.