etrepat / baum

Baum is an implementation of the Nested Set pattern for Laravel's Eloquent ORM.
http://etrepat.com/baum
MIT License
2.24k stars 460 forks source link

makeFirstRoot() #182

Open Pazuur opened 9 years ago

Pazuur commented 9 years ago

Since i started building a menu builder with jquery.nestable and baum, everything turned out pretty well. Except for one thing. Moving a menu item to the first root position inside a 'scoped' menu is throwing exceptions. It would be great to have a method 'makeFirstRoot' that will make it possible to reorder an item to the first position at the root inside the scope.