- Added query methods
whereNotDescendantOf,orWhereDescendantOf,orWhereNotDescendantOf whereAncestorOf,whereDescendantOfand every method that depends on them can now accept node instance- Added
Node::getBoundsthat returns an array of node bounds that can be used inwhereNodeBetween
- Added
linkNodesmethod toCollectionclass
- Support Laravel 5
- Added
isChildOf,isAncestorOf,isSiblingOfmethods
- Added
insertAfter,insertBeforemethods. prependandappendmethods now save target model.- You can now call
refreshNodeto make sure that node has updated structural data (lft and rgt values). - The root node is not required now. You can use
saveAsRootormakeRootmethod. New model is saved as root by default. - You can now create as many nodes and in any order as you want within single request.
- Laravel 2 is supported but not required.
ancestorsOfnow doesn't include target node into results.- New constraint methods
hasParentandhasChildren. - New method
isDescendantOfthat checks if node is a descendant of other node. - Default order is not applied by default.
- New method
descendantsOfthat allows to get descendants by id of the node. - Added
countErrorsandisBrokenmethods to check whether the tree is broken. NestedSet::createRoothas been removed.NestedSet::columndoesn't create a foreign key anymore.
Collection::toDictionaryis now obsolete. UseCollection::groupBy.- Laravel 4.2 is required