ajcastro/eager-load-pivot-relations
Laravel package that eager loads relations defined on pivot models in many-to-many relationships, eliminating N+1 queries when accessing nested pivot data. Use familiar Eloquent syntax to keep role_user, post_tag, and similar pivot records fast and clean. Drop-in trait and builder methods make setup...
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| audunru/eager-load-pivot-relations | 0.86 | Eager load relations on pivot models in Laravel Eloquent BelongsToMany relationships. Add the EagerLoadPivotTrait to the related model to load nested pivot data such as units or quantities. Supports Laravel 8 and above. | 9 | 9 | 1 | 4K | 1 | 14.8 | 39.8 | — | 5 months ago | |
| staudenmeir/laravel-merged-relations | 0.86 | Merge multiple Laravel Eloquent relations into a single relation that can be queried and eager loaded as one. Combine hasMany, belongsToMany, and morph relations into a unified result set, simplifying complex relationship handling in your models. | 185 | 186 | 12 | 53K | 1 | 9.6 | 36.2 | MIT | 7 months ago | |
| jedrzej/withable | 0.86 | — | 24 | 25 | 4 | 6K | 3 | 1.0 | 33.9 | MIT | — | |
| kingmaker/laravel-many-to-many-self-relationship | 0.85 | A Laravel Eloquent package for many-to-many self-referential relationships like followers/following, friends, or related models. It provides a reusable trait for managing pivot records, inverse relations, and attach/detach-style operations cleanly. | 18 | 19 | 2 | 8K | 1 | 0.3 | 36.0 | — | — | |
| zing/laravel-eloquent-relationships | 0.85 | — | 8 | 8 | 0 | 39K | 1 | 22.4 | 58.5 | MIT | 3 weeks ago | |
| fico7489/laravel-eloquent-join | 0.85 | Laravel Eloquent Join adds SQL JOIN support to Eloquent models and relationships, letting you sort, filter, and query joined tables directly while keeping familiar query builder syntax. It simplifies complex relationship queries and helps avoid extra queries. | 338 | — | 87 | — | 11 | 7.6 | 4.1 | MIT | 1 year ago |
|
| reedware/laravel-relation-joins | 0.85 | — | 212 | 212 | 22 | 87K | 3 | 20.4 | 39.2 | MIT | 6 months ago | |
| znck/belongs-to-through | 0.84 | — | 1,269 | 605 | 97 | 637 | 0 | 24.6 | 2.6 | MIT | 8 months ago | |
| mpyw/compoships-eager-limit | 0.84 | — | 13 | 13 | 2 | 2K | 1 | 0.3 | 19.8 | MIT | 3 years ago | |
| fico7489/laravel-pivot | 0.84 | — | 527 | 528 | 53 | 116K | 2 | 13.9 | 33.4 | MIT | 1 year ago | |
| staudenmeir/eloquent-has-many-deep | 0.84 | Extended HasManyThrough for Laravel 5.5+ lets you define relationships with unlimited intermediate models, supporting many-to-many, polymorphic, and combined relationship types. Define deep relationships by concatenating existing ones or specifying keys manually; includes third-party package support... | 2,872 | 2,876 | 157 | 943K | 2 | 36.4 | 36.8 | MIT | 7 months ago | |
| ankurk91/laravel-eloquent-relationships | 0.83 | — | 58 | 59 | 9 | 8K | 0 | 0.3 | 20.7 | MIT | — | |
| msafadi/laravel-eloquent-join-with | 0.83 | — | 166 | 166 | 6 | 25 | 2 | 3.8 | 0.9 | MIT | 11 months ago | |
| josezenem/laravel-make-migration-pivot | 0.83 | A Laravel package that adds an Artisan command for generating pivot table migrations between two models, simplifying many-to-many setup with correctly named foreign keys and timestamps while reducing boilerplate. | 20 | 20 | 4 | 2K | 0 | 0.9 | 27.3 | MIT | 1 year ago | |
| reedware/laravel-composite-relations | 0.83 | Adds composite foreign key support to Eloquent relationships. Define Belongs To, Has One, and Has Many relations using multiple columns, with full eager loading and "where has" query support through a simple trait on your base model. | 22 | 22 | 8 | 9K | 0 | 16.7 | 40.0 | MIT | 4 months ago | |
| kirschbaum-development/eloquent-power-joins | 0.83 | Eloquent Power Joins brings Laravel's magic to joins: define joins using your relationship methods, use model scopes in any context, query relationship existence via joins instead of where exists, and sort by related columns or aggregates with less code. | 1,570 | 1,578 | 102 | 7M | 9 | 43.5 | 62.0 | MIT | 1 week ago | |
| staudenmeir/eloquent-eager-limit-x-laravel-adjacency-list | 0.83 | Compatibility package combining staudenmeir/laravel-adjacency-list with eloquent-eager-limit, letting Laravel apps cap eager-loaded relations on recursive adjacency list queries. Adds the missing trait support so hierarchical models can limit eager loads per parent without N+1 queries. | 14 | 14 | 1 | 403 | 0 | 0.4 | 20.0 | MIT | 3 years ago | |
| mikebronner/laravel-pivot-events | 0.83 | Adds Eloquent model events for many-to-many pivot operations: sync, attach, detach, and updateExistingPivot on BelongsToMany/MorphToMany. Listen for pivotSyncing/Synced, pivotAttaching/Attached, pivotDetaching/Detached, and pivotUpdating/Updated. | 141 | 141 | 12 | 162K | 0 | 12.4 | 44.7 | MIT | 8 months ago | |
| stancl/laravel-hasmanywithinverse | 0.82 | Laravel's hasMany leaves the inverse relation unset, so accessing the parent from each child triggers extra queries. This package adds hasManyWithinverse, which hydrates the inverse automatically—so $child->parent is already loaded without N+1. | 69 | — | 5 | — | 1 | 0.9 | — | MIT | 3 years ago | |
| korridor/laravel-has-many-sync | 0.82 | — | 36 | 36 | 3 | 14K | 0 | 11.4 | 38.6 | MIT | 6 months ago |
How can I help you explore Laravel packages today?