NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist
Packagist, #885 most downloaded on Packagist
Laravel Eloquent HasManyThrough relationships with unlimited levels
Latest stable
v1.22.1
Last release 8 months ago
14 Mar 2026
Ships fairly regularly
a new release about every 2 months
Most releases are documented
notes for 44 of 54 stable releases
Nothing withdrawn
no release was ever pulled
8 years old
54 releases · first in 2018
Drag across the ruler to compare, or tap a release to open it.
Fix array offset deprecations by @staudenmeir in https://github.com/staudenmeir/eloquent-has-many-deep/pull/283
Full Changelog: https://github.com/staudenmeir/eloquent-has-many-deep/compare/v1.22...v1.22.1
Fix array offset deprecations by @staudenmeir in https://github.com/staudenmeir/eloquent-has-many-deep/pull/283
Full Changelog: https://github.com/staudenmeir/eloquent-has-many-deep/compare/v1.21.2...v1.21.3
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Update type hint for relationship in IDE Helper by @mathieutu in https://github.com/staudenmeir/eloquent-has-many-deep/pull/277
Full Changelog: https://github.com/staudenmeir/eloquent-has-many-deep/compare/v1.21.1...v1.21.2
Fix deep relations from HasOneDeep relations by @staudenmeir in https://github.com/staudenmeir/eloquent-has-many-deep/pull/272
Full Changelog: https://github.com/staudenmeir/eloquent-has-many-deep/compare/v1.21...v1.21.1
Find deep relationships by return type by @staudenmeir in https://github.com/staudenmeir/eloquent-has-many-deep/pull/262
Full Changelog: https://github.com/staudenmeir/eloquent-has-many-deep/compare/v1.20.6...v1.20.7
Use alias for deferred provider by @daniel-de-wit in https://github.com/staudenmeir/eloquent-has-many-deep/pull/258
Full Changelog: https://github.com/staudenmeir/eloquent-has-many-deep/compare/v1.20.5...v1.20.6
Upgrade to PHPStan 2 by @staudenmeir in https://github.com/staudenmeir/eloquent-has-many-deep/pull/251
Full Changelog: https://github.com/staudenmeir/eloquent-has-many-deep/compare/v1.20.4...v1.20.5
## What's Changed * Support HasManyDeep::one() (#249) Full Changelog: https://github.com/staudenmeir/eloquent-has-many-deep/compare/v1.20.3...v1.20.4
HasManyDeep::one() (#249)Full Changelog: https://github.com/staudenmeir/eloquent-has-many-deep/compare/v1.20.3...v1.20.4
Increase PHPStan level to 9 by @staudenmeir in https://github.com/staudenmeir/eloquent-has-many-deep/pull/247
Full Changelog: https://github.com/staudenmeir/eloquent-has-many-deep/compare/v1.20.2...v1.20.3
Support breaking change in Laravel v11.15
v11.15 (#238)Full Changelog: https://github.com/staudenmeir/eloquent-has-many-deep/compare/v1.20.1...v1.20.2
Fix concatenation with morph relationship and alias
Full Changelog: https://github.com/staudenmeir/eloquent-has-many-deep/compare/v1.20...v1.20.1
## What's Changed * Support PHP 8.4 Full Changelog: https://github.com/staudenmeir/eloquent-has-many-deep/compare/v1.19.4...1.19.5
Full Changelog: https://github.com/staudenmeir/eloquent-has-many-deep/compare/v1.19.4...1.19.5
Fix concatenation with morph relationship and alias
Full Changelog: https://github.com/staudenmeir/eloquent-has-many-deep/compare/v1.19.3...v1.19.4
Example: How to get unique models by @decadence in https://github.com/staudenmeir/eloquent-has-many-deep/pull/207
getIntermediateTables() methodFull Changelog: https://github.com/staudenmeir/eloquent-has-many-deep/compare/v1.19.2...v1.19.3
Mark HasOneDeep as generic model
HasOneDeep as generic model (#223)Full Changelog: https://github.com/staudenmeir/eloquent-has-many-deep/compare/v1.19.1...v1.19.2
## What's Changed * Improve IDE helper model hook Full Changelog: https://github.com/staudenmeir/eloquent-has-many-deep/compare/v1.19...v1.19.1
Full Changelog: https://github.com/staudenmeir/eloquent-has-many-deep/compare/v1.19...v1.19.1
- Improve ide-helper hook
ide-helper hook (#202)- Add ide-helper hook
ide-helper hook (#202)Support concatenation of korridor/laravel-has-many-merged relationships
korridor/laravel-has-many-merged relationshipsHasOneDeep relationships from third-party packagesMark HasOneDeep as generic model
HasOneDeep as generic model (#223)Full Changelog: https://github.com/staudenmeir/eloquent-has-many-deep/compare/v1.17.2...v1.17.3
Support HasOneDeep relationships from third-party packages
HasOneDeep relationships from third-party packagesSupport concatenation of korridor/laravel-has-many-merged relationships
Support existing relationships with constraints (#36, #91, #161)
- Add reverse relationships
Use newRelatedThroughInstance() method to prepare through parents
newRelatedThroughInstance() method to prepare through parents (#154)Mark HasManyDeep as generic model
HasManyDeep as generic model (#147)Support related models with custom table
Fix self-relation existence queries with custom local key
Make withTrashed() work with withCount()/loadCount()
withTrashed() work with withCount()/loadCount() (#114)Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Supports existing HasManyDeep relationships.
Supports existing HasManyDeep relationships.
Supports withTrashed() on intermediate models.
Supports withTrashed() on intermediate models.
Supports existing relationships.
Supports existing relationships.
Nothing published for this version
Adds HasOneDeep relationship.
Adds HasOneDeep relationship.
Support Laravel 13 by @staudenmeir in https://github.com/staudenmeir/eloquent-has-many-deep/pull/280
Full Changelog: https://github.com/staudenmeir/eloquent-has-many-deep/compare/v1.21.2...v1.22
Support Laravel 12 by @staudenmeir in https://github.com/staudenmeir/eloquent-has-many-deep/pull/261
Full Changelog: https://github.com/staudenmeir/eloquent-has-many-deep/compare/v1.20.7...v1.21
## What's Changed * Support Laravel 11 Full Changelog: https://github.com/staudenmeir/eloquent-has-many-deep/compare/v1.19.3...v1.20
Full Changelog: https://github.com/staudenmeir/eloquent-has-many-deep/compare/v1.19.3...v1.20
Adds withIntermediate() and withPivot().
withIntermediate() and withPivot().Auto register ide-helper hook using Package Discovery by @daniel-de-wit in https://github.com/staudenmeir/eloquent-has-many-deep/pull/215
Full Changelog: https://github.com/staudenmeir/eloquent-has-many-deep/compare/v1.18.3...v1.19
Nothing published for this version
Add customization options for supporting third-party packages
Add newRelatedDeepThroughInstance() method
newRelatedDeepThroughInstance() method (#171)Nothing published for this version
Add cursor pagination for Laravel 8.41+
Nothing published for this version
Nothing published for this version
Supports existing relationships with table aliases.
Supports existing relationships with table aliases.
Supports eager loading with limit using staudenmeir/eloquent-eager-limit.
Supports eager loading with limit using staudenmeir/eloquent-eager-limit.
Allows unique pagination queries with GROUP BY (#2).
Allows unique pagination queries with GROUP BY (#2).
Nothing published for this version
One column per quarter.