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
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| volosyuk/simple-eloquent | 0.82 | — | 55 | 56 | 10 | 1K | 0 | 1.3 | 19.5 | MIT | 6 years ago | |
| zing/laravel-eloquent-relationships | 0.82 | — | 8 | 8 | 0 | 5K | 1 | 17.5 | 42.4 | MIT | 4 months ago | |
| jedrzej/withable | 0.82 | — | 24 | 25 | 4 | 3K | 3 | 1.0 | 28.8 | MIT | — | |
| nunomaduro/essentials | 0.82 | — | 1,234 | 1,232 | 76 | 112K | 3 | 22.4 | 32.2 | MIT | 5 months ago | |
| sleeping-owl/with-join | 0.81 | — | 92 | 94 | 24 | 304 | 6 | 4.6 | 11.3 | MIT | 11 years ago | |
| mpyw/eloquent-has-by-non-dependent-subquery | 0.81 | — | 79 | 84 | 10 | 3K | 0 | 1.5 | 16.1 | MIT | 4 years ago | |
| lastdragon-ru/lara-asp-eloquent | 0.81 | — | 1 | 1 | 0 | 5K | 0 | 0.0 | 46.0 | MIT | — | |
| mpyw/compoships-eager-limit | 0.81 | — | 13 | 13 | 2 | 548 | 1 | 0.3 | 16.6 | MIT | 3 years ago | |
| mohammad-fouladgar/eloquent-builder | 0.81 | — | 526 | 527 | 42 | 1K | 0 | 4.2 | 7.2 | MIT | 7 years ago | |
| mpyw/eloquent-has-by-join | 0.80 | — | 23 | 25 | 4 | 440 | 0 | 1.2 | 13.5 | MIT | 4 years ago | |
| zara-4/laravel-lazy-mysql | 0.80 | Laravel package for MySQL that delays/queues queries until needed, helping reduce eager database work and improving performance. Useful for batching, deferred execution, and controlling when SQL actually runs in your app. | 10 | 12 | 3 | 21 | 0 | 0.7 | 6.9 | MIT | 9 years ago | |
| msafadi/laravel-eloquent-join-with | 0.80 | — | 165 | 165 | 6 | 0 | 2 | 10.7 | — | MIT | 8 months ago | |
| ghostcompiler/laravel-querybuilder | 0.80 | API-ready Eloquent query builder for Laravel with strict allow-lists for filters, sorts, includes, and sparse fields. Supports nested relation filters/sorting, custom filters, tenant scoping, safe public query interfaces, and pagination helpers for clean API responses. | 18 | 18 | 0 | 395 | 0 | 17.9 | 21.3 | MIT | 1 month ago | |
| ashleydawson/simple-pagination | 0.79 | Framework-agnostic pagination library for PHP. Provide callbacks to count total items and fetch a slice (offset/length), and it returns a Pagination object with items plus page metadata and ranges. Works with arrays, DB lists, Doctrine, Solr, and more. | 18 | 19 | 5 | 311 | 1 | 3.0 | 17.1 | MIT | 7 years ago | |
| ankurk91/laravel-eloquent-relationships | 0.79 | — | 58 | 59 | 9 | 8K | 0 | 0.3 | 20.6 | MIT | — | |
| onemustcode/query | 0.79 | — | 4 | 4 | 2 | 266 | 5 | 4.4 | 25.0 | MIT | 8 years ago | |
| kirschbaum-development/eloquent-power-joins | 0.79 | Eloquent Power Joins brings Laravel-style joins to Eloquent. Join via relationship definitions, reuse model scopes in join contexts, query relationship existence with joins, and sort by related columns/aggregations—all with cleaner, more readable queries. | 1,572 | 1,577 | 102 | 3M | 10 | 43.6 | 57.1 | MIT | 1 week ago | |
| korridor/laravel-has-many-merged | 0.76 | Add a custom Eloquent hasManyMerged relationship to merge multiple hasMany relations into one collection. Query, eager load, sort, and paginate merged results as a single relation while keeping models and constraints intact. | 90 | 90 | 3 | 4K | 4 | 19.1 | 28.0 | MIT | 3 months ago | |
| kirkbushell/eloquence | 0.76 | — | 575 | 579 | 56 | 25K | 1 | 5.6 | 22.8 | MIT | 1 year ago | |
| staudenmeir/eloquent-has-many-deep | 0.76 | Laravel Eloquent extension for “deep” has-many-through relationships across unlimited intermediate models. Supports many-to-many and polymorphic paths, combinations, and some third-party packages. Define relations by concatenating existing ones or configuring keys manually. | 2,870 | 2,874 | 158 | 582K | 2 | 41.6 | 35.2 | MIT | 4 months ago |
How can I help you explore Laravel packages today?