staudenmeir/eloquent-eager-limit
Add per-parent limits to eager-loaded Eloquent relationships in Laravel. Load only the latest N related models for each parent (e.g., newest comments per post) without N+1 queries. Supports common relations and integrates cleanly with queries and pagination.
|
Package
|
Constraint
|
|---|---|
| illuminate/database | ^10.0 |
|
Package
|
Constraint
|
|---|---|
| phpstan/phpstan | ^1.10 |
| phpunit/phpunit | ^10.1 |
How can I help you explore Laravel packages today?