NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist
Packagist, #1244 most downloaded on Packagist
Recursive Laravel Eloquent relationships with CTEs
Latest stable
v1.26.2
Last release 1 months ago
05 Oct 2026
Ships fairly regularly
a new release about every 2 months
Nearly every release is documented
notes for 59 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
8 years old
93 releases · first in 2019
Drag across the ruler to compare, or tap a release to open it.
fix: null array access warning by @calebdw in https://github.com/staudenmeir/laravel-adjacency-list/pull/320
Full Changelog: https://github.com/staudenmeir/laravel-adjacency-list/compare/v1.26.1...v1.26.2
Fix siblings eager loading by @staudenmeir in https://github.com/staudenmeir/laravel-adjacency-list/pull/319
Full Changelog: https://github.com/staudenmeir/laravel-adjacency-list/compare/v1.26...v1.26.1
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Improve IDE helper hook by @staudenmeir in https://github.com/staudenmeir/laravel-adjacency-list/pull/306
Full Changelog: https://github.com/staudenmeir/laravel-adjacency-list/compare/v1.25.1...v1.25.2
Improve path parsing on PostgreSQL by @staudenmeir in https://github.com/staudenmeir/laravel-adjacency-list/pull/302
Full Changelog: https://github.com/staudenmeir/laravel-adjacency-list/compare/v1.25...v1.25.1
Improve IDE helper hook by @staudenmeir in https://github.com/staudenmeir/laravel-adjacency-list/pull/305
Full Changelog: https://github.com/staudenmeir/laravel-adjacency-list/compare/v1.23.4...v1.23.5
Use PHP 8.4 by default by @staudenmeir in https://github.com/staudenmeir/laravel-adjacency-list/pull/283
Full Changelog: https://github.com/staudenmeir/laravel-adjacency-list/compare/v1.23.3...v1.23.4
Use alias for deferred provider by @daniel-de-wit in https://github.com/staudenmeir/laravel-adjacency-list/pull/282
Full Changelog: https://github.com/staudenmeir/laravel-adjacency-list/compare/v1.23.2...v1.23.3
upgrade to phpstan 2 and larastan 3 by @ariaieboy in https://github.com/staudenmeir/laravel-adjacency-list/pull/273
Full Changelog: https://github.com/staudenmeir/laravel-adjacency-list/compare/v1.23.1...v1.23.2
MySQL - Including an INT column in Pivot Table Causes invalid SQL Query by @adrianpaiva1 in https://github.com/staudenmeir/laravel-adjacency-list/pull
Full Changelog: https://github.com/staudenmeir/laravel-adjacency-list/compare/v1.23...v1.23.1
Fix/issue 233 by @SanderMuller in https://github.com/staudenmeir/laravel-adjacency-list/pull/256
Full Changelog: https://github.com/staudenmeir/laravel-adjacency-list/compare/v1.22.1...v1.22.2
Improve relation generics by @SanderMuller in https://github.com/staudenmeir/laravel-adjacency-list/pull/252
Full Changelog: https://github.com/staudenmeir/laravel-adjacency-list/compare/v1.22...v1.22.1
## What's Changed * Add additional methods (#232) Full Changelog: https://github.com/staudenmeir/laravel-adjacency-list/compare/v1.20...v1.20.1
Full Changelog: https://github.com/staudenmeir/laravel-adjacency-list/compare/v1.20...v1.20.1
Add scope for querying without children by @l3aro in https://github.com/staudenmeir/laravel-adjacency-list/pull/209
Full Changelog: https://github.com/staudenmeir/laravel-adjacency-list/compare/v1.13.10...v1.13.11
Update withMaxDepth example by @whoami15 in https://github.com/staudenmeir/laravel-adjacency-list/pull/188
Full Changelog: https://github.com/staudenmeir/laravel-adjacency-list/compare/v1.13.9...v1.13.10
Add withMaxDepth() helper for tree relationships
withMaxDepth() helper for tree relationships (#183)Improvement: Add precision and scale for decimal column types in pivot by @loribean in https://github.com/staudenmeir/laravel-adjacency-list/pull/177
Full Changelog: https://github.com/staudenmeir/laravel-adjacency-list/compare/v1.13.7...v1.13.8
Support HasOneDeep relationships from third-party packages
HasOneDeep relationships from third-party packagesAdd phpdoc for generics in Collection by @raustin-m in https://github.com/staudenmeir/laravel-adjacency-list/pull/171
Full Changelog: https://github.com/staudenmeir/laravel-adjacency-list/compare/v1.13.5...v1.13.6
Support cycle detection with UUIDs on PostgreSQL
Directly provide a model to treeOf by @Propaganistas in https://github.com/staudenmeir/laravel-adjacency-list/pull/166
Full Changelog: https://github.com/staudenmeir/laravel-adjacency-list/compare/v1.13.3...v1.13.4
Improve siblings eager loading query
Fix nested eager loading of *OfDescendants relations with empty results by @boumanb
Support changed database expressions
Add RootAncestorOrSelf relation
RootAncestorOrSelf relation (#194)Full Changelog: https://github.com/staudenmeir/laravel-adjacency-list/compare/v1.12.10...v1.12.11
Make graph relationships concatenable
Full Changelog: https://github.com/staudenmeir/laravel-adjacency-list/compare/v1.12.9...v1.12.10
Add withInitialQueryConstraint() and withQueryConstraint() methods (#117, #170, #221)
withInitialQueryConstraint() and withQueryConstraint() methods (#117, #170, #221)Full Changelog: https://github.com/staudenmeir/laravel-adjacency-list/compare/v1.12.8...v1.12.9
Add toTree() method for graphs (#160, #217)
toTree() method for graphs (#160, #217)Full Changelog: https://github.com/staudenmeir/laravel-adjacency-list/compare/v1.12.7...v1.12.8
Add phpdoc for generics in Collection
Full Changelog: https://github.com/staudenmeir/laravel-adjacency-list/compare/v1.12.6...v1.12.7
Fix length limit of path columns on SQL Server
Full Changelog: https://github.com/staudenmeir/laravel-adjacency-list/compare/v1.12.5...v1.12.6
Support HasOneDeep relationships from third-party packages
HasOneDeep relationships from third-party packagesSupport cycle detection with UUIDs on PostgreSQL
Improve siblings eager loading query
Fix nested eager loading of *OfDescendants relations with empty results by @boumanb
Add pivot columns to graph children and parents relationships
children and parents relationshipsSupport reverse custom paths: https://github.com/staudenmeir/laravel-adjacency-list#custom-paths https://github.com/staudenmeir/laravel-adjacency-list
Improve SQL Server support for graph relationships
Add ide-helper hook by @nandi95 (#131): https://github.com/staudenmeir/laravel-adjacency-list#included-relationships https://github.com/staudenmeir/la
ide-helper hook by @nandi95 (#131):
https://github.com/staudenmeir/laravel-adjacency-list#included-relationships
https://github.com/staudenmeir/laravel-adjacency-list#graphs-included-relationshipsAdd withMaxDepth() helper for graph relationships
withMaxDepth() helper for graph relationshipsSupport PostgreSQL tables with schema
Refactor code for merge packages
Refactor code for merge packages
Support PostgreSQL tables with schema
Support self-relation aggregate queries with column
Add recursive query constraints
Improve depthFirst() with integer keys
depthFirst() with integer keys (#72)Select depth in descendants query of *OfDescendants relations
*OfDescendants relationsAdd MorphedByManyOfDescendants relation
MorphedByManyOfDescendants relation (#25)Fix recursion issues with JSON encoding of toTree() results
toTree() resultsNothing published for this version
- Add `toTree()` method
toTree() methodNothing published for this version
- Add `toTree()` method - Support PHP 8
toTree() methodAdds `HasManyOfDescendants` and `RootAncestor` relations.
HasManyOfDescendants and RootAncestor relations.treeOf() scope.Nothing published for this version
Nothing published for this version
Fixes char columns on PostgreSQL.
Fixes char columns on PostgreSQL.
Fixes character limit on MySQL.
Fixes character limit on MySQL.
Nothing published for this version
Nothing published for this version
Fixes char columns on PostgreSQL.
Fixes char columns on PostgreSQL.
One column per quarter.