kalnoy/nestedset
Nested Set Model for Laravel 5.7 and up
v7.0.0
15M downloads/mo
#1218 most downloaded on Packagist
lazychaser/laravel-nestedset
What this package is like to depend on
Last release 4 months ago
11 Apr 2026
Ships fairly regularly
a new release about every 6 months
Some releases are documented
notes for 18 of 63 stable releases
Nothing withdrawn
no release was ever pulled
13 years old
64 releases · first in 2013
2 releases in the last 12 months
see the full history below
Release timeline
64 releases · Oct 2013 to Apr 2026Releases
latest 60 of 64-
v7.0.011 Apr 2026Nothing published for this version
-
v6.0.711 Apr 2026Nothing published for this version
-
v6.0.622 Apr 2025Release notes
Open source →What's Changed
- Fixes php 8.4 deprecation warnings like: "Implicitly marking paramete… by @julesgraus in #607
- Revert changing method signatures by @ysfks in #619
- Remove unneeded requirement: serializable-closure by @kohlerdominik in #623
New Contributors
- @julesgraus made their first contribution in #607
- @ysfks made their first contribution in #619
Full Changelog: v6.0.5...v6.0.6
-
v6.0.525 Feb 2025Release notes
Open source → -
v6.0.408 Apr 2024Nothing published for this version
-
v6.0.329 Nov 2023Nothing published for this version
-
v6.0.216 Feb 2023Nothing published for this version
-
v6.0.111 Feb 2022Nothing published for this version
-
v6.0.028 May 2021Nothing published for this version
-
v5.0.528 May 2021Nothing published for this version
-
v5.0.428 May 2021Nothing published for this version
-
v5.0.307 Dec 2020Nothing published for this version
-
v5.0.211 Sep 2020Nothing published for this version
-
v5.0.104 Mar 2020Nothing published for this version
-
v5.0.006 Sep 2019Nothing published for this version
-
v4.3.516 Jun 2019Nothing published for this version
-
v4.3.427 Feb 2019 -
v4.3.304 Sep 2018 -
v4.3.204 Feb 2018 -
v4.3.126 Nov 2017Nothing published for this version
-
v4.3.030 Aug 2017Release notes
Open source →- Support Laravel 5.5
- Added
fixSubtreeandrebuildSubtreemethods - Increased performance of tree rebuilding
-
v4.2.720 Jun 2017 -
v4.2.610 Jun 2017Nothing published for this version
-
v4.2.512 May 2017Release notes
Open source →- #208: dirty parent and bounds when making a root
- #206: fixed where has on descendants
- refactored ancestors and descendants relations
-
v4.2.412 Apr 2017Release notes
Open source →- Fixed issues related to rebuilding tree when using
SoftDeletesand scoping
- Fixed issues related to rebuilding tree when using
-
4.2.308 Apr 2017Release notes
Open source →- Added
whereAncestorOrSelf,ancestorsAndSelf,descendantsOrSelf,whereDescendantOrSelfhelper methods - #186: rebuild tree removes nodes softly when model uses SoftDeletes trait
- #191: added
whereIsLeafandleavesmethod, addedisLeafcheck on node
- Added
-
v4.2.211 Feb 2017Nothing published for this version
-
v4.2.125 Jan 2017Nothing published for this version
-
v4.2.019 Dec 2016Nothing published for this version
-
v4.1.629 Aug 2016Nothing published for this version
-
4.1.523 Aug 2016Nothing published for this version
-
v4.1.403 Aug 2016Nothing published for this version
-
v4.1.315 Apr 2016Nothing published for this version
-
v4.1.223 Mar 2016Nothing published for this version
-
v4.1.113 Mar 2016Nothing published for this version
-
v4.1.029 Feb 2016Release notes
Open source →- #75: Converted to trait. Following methods were renamed:
appendTotoappendToNodeprependTotoprependToNodeinsertBeforetoinsertBeforeNodeinsertAftertoinsertAfterNodegetNexttogetNextNodegetPrevtogetPrevNode
- #82: Fixing tree now handles case when nodes pointing to non-existing parent
- The number of missing parent is now returned when using
countErrors - #79: implemented scoping feature
- #81: moving node now makes model dirty before saving it
- #45: descendants is now a relation that can be eagerly loaded
hasChildrenandhasParentare now deprecated. Usehas('children')has('parent')instead- Default order is no longer applied for
siblings(),descendants(),prevNodes,nextNodes - #50: implemented tree rebuilding feature
- #85: added tree flattening feature
- #75: Converted to trait. Following methods were renamed:
-
v4.1.0-beta24 Feb 2016 pre-releaseNothing published for this version
-
v4.0.120 Jan 2016Nothing published for this version
-
v4.0.023 Dec 2015Nothing published for this version
-
v3.1.420 Dec 2016Nothing published for this version
-
v3.1.307 Apr 2016Nothing published for this version
-
v3.1.223 Dec 2015Nothing published for this version
-
v3.1.121 Dec 2015Release notes
Open source →- Fixed #42: model becomes dirty before save when parent is changed and using
appendTo,prependTo,insertBefore,insertAfter.
- Fixed #42: model becomes dirty before save when parent is changed and using
-
v3.1.010 Sep 2015Release notes
Open source →- Added
fixTreemethod for fixinglft/rgtvalues based on inheritance - Dropped support of Laravel < 5.1
- Improved compatibility with different databases
- Added
-
v3.0.005 Aug 2015Release notes
Open source →- Support Laravel 5.1.9
- Renamed
appendtoappendNode,prependtoprependNode - Renamed
nexttonextNodes,prevtoprevNodes - Renamed
aftertoafterNode,beforetobeforeNode
-
v2.4.423 Jun 2015Nothing published for this version
-
v2.4.312 May 2015Nothing published for this version
-
v2.4.229 Mar 2015Nothing published for this version
-
v2.4.129 Mar 2015Nothing published for this version
-
v2.4.028 Feb 2015Release notes
Open source →- 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 query methods
-
v2.3.216 Feb 2015Nothing published for this version
-
v2.3.115 Feb 2015Nothing published for this version
-
v2.3.011 Feb 2015 -
v2.2.004 Feb 2015 -
v2.1.023 Jan 2015 -
v2.0.225 Nov 2014Nothing published for this version
-
v2.0.121 Oct 2014Nothing published for this version
-
v2.0-beta326 Jul 2014Nothing published for this version
-
v2.0-beta212 Jul 2014Nothing published for this version
-
v2.0-beta17 Jun 2014Nothing published for this version