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.
toRawSql()mariadb driver name by @crishoj in https://github.com/staudenmeir/eloquent-eager-limit/pull/69Full Changelog: https://github.com/staudenmeir/eloquent-eager-limit/compare/v1.8.1...v1.8.2
Supports Laravel 7.
Supports Laravel 6.
Fixes legacy MySQL queries with database name (#14).
Fixes legacy MySQL queries with database name (#14).
Supports Laravel 5.8.
Supports offset.
Fixes lazy loading with limit (#5).
Removes temporary columns from results.
Fixes missing $groupLimit (#3).
How can I help you explore Laravel packages today?