This operation allows your admins to reoder & nest entries.
Your model should have the following integer fields, with a default value of 0:
parent_id field has to be nullable.
How to Use
Reorder operation is disabled by default. To enable it, you should use
$this->crud->allowAccess('reorder'); inside your
setup() method. This will make a Reorder button appear in ListEntries, in the
top button stack. Then, in your EntityCrudController's
attribute_name should be the attribute you want shown on the draggable elements (ex:
ALLOWED_DEPTH should be an integer, how many levels deep would you allow your admin to go when nesting; for infinit levels, you should set it to
How It Works
/reorder route points to a
reorder() method in your