- Added
linkNodes
method toCollection
class
- Support Laravel 5
- Added
isChildOf
,isAncestorOf
,isSiblingOf
methods
- Added
insertAfter
,insertBefore
methods. prepend
andappend
methods now save target model.- You can now call
refreshNode
to make sure that node has updated structural data (lft and rgt values). - The root node is not required now. You can use
saveAsRoot
ormakeRoot
method. 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.
ancestorsOf
now doesn't include target node into results.- New constraint methods
hasParent
andhasChildren
. - New method
isDescendantOf
that checks if node is a descendant of other node. - Default order is not applied by default.
- New method
descendantsOf
that allows to get descendants by id of the node. - Added
countErrors
andisBroken
methods to check whether the tree is broken. NestedSet::createRoot
has been removed.NestedSet::column
doesn't create a foreign key anymore.
Collection::toDictionary
is now obsolete. UseCollection::groupBy
.- Laravel 4.2 is required