mr-punyapal/laravel-extended-relationships
Adds efficient, custom Eloquent relationships for Laravel via a HasExtendedRelationships trait, reducing query count and duplicate code. Includes helpers like belongsToManyKeys and more, aimed at improving performance in real-world apps.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| korridor/laravel-has-many-merged | 0.87 | 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 | 5K | 4 | 17.4 | 28.3 | MIT | 5 months ago | |
| staudenmeir/belongs-to-through | 0.86 | Add BelongsToThrough relationships to Eloquent: the inverse of HasManyThrough. Define belongs-to chains across unlimited intermediate models, with support for custom keys, table aliases, and soft deletes. Works with Laravel 5+. | 1,270 | 1,271 | 97 | 399K | 0 | 28.8 | 37.6 | MIT | 6 months ago | |
| staudenmeir/eloquent-has-many-deep | 0.85 | 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 | 625K | 2 | 40.7 | 35.5 | MIT | 6 months ago | |
| multicaret/laravel-acquaintances | 0.85 | — | 849 | 854 | 70 | 7K | 5 | 29.3 | 17.6 | MIT | 5 months ago | |
| znck/belongs-to-through | 0.85 | — | 1,270 | 605 | 97 | 567 | 0 | 28.7 | 2.4 | MIT | 6 months ago | |
| kitloong/eloquent-power-joins-with-compoships | 0.83 | — | 26 | 26 | 3 | 464 | 0 | 3.2 | 17.7 | MIT | 11 months ago | |
| reedware/laravel-relation-joins | 0.82 | — | 211 | 211 | 23 | 63K | 3 | 24.3 | 38.4 | MIT | 5 months ago | |
| ankurk91/laravel-eloquent-relationships | 0.82 | — | 58 | 59 | 9 | 8K | 0 | 0.3 | 20.8 | MIT | — | |
| staudenmeir/eloquent-json-relations | 0.81 | Adds JSON foreign key support to Laravel Eloquent relationships (belongsTo, hasMany, morph*, through). Also enables many-to-many and has-many-through relations using JSON arrays (IDs or objects) across MySQL, Postgres, SQLite, SQL Server. | 1,080 | 1,085 | 64 | 233K | 6 | 28.1 | 36.6 | MIT | 6 months ago | |
| stayallive/laravel-inverse-relations | 0.81 | — | 31 | 31 | 1 | 0 | 0 | 1.4 | — | MIT | 2 years ago | |
| kirschbaum-development/eloquent-power-joins | 0.80 | 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,573 | 1,577 | 102 | 3M | 10 | 42.3 | 57.8 | MIT | 1 month ago | |
| codenco-dev/eloquent-model-tester | 0.78 | Laravel dev-only helper to test Eloquent models: verify table structure/columns, fillable vs guarded attributes, and model relationships. Works with PHPUnit and model factories, integrates easily in your model test classes. | 20 | 20 | 1 | 208 | 2 | 19.9 | 16.1 | MIT | 4 months ago | |
| zing/laravel-eloquent-relationships | 0.78 | — | 8 | 8 | 0 | 28K | 1 | 15.5 | 53.2 | MIT | 6 months ago | |
| chelout/laravel-relationship-events | 0.75 | Adds missing Eloquent relationship events to Laravel models. Use simple traits (HasOne/Many, BelongsTo/Many, Morph*) to listen for attach/detach/sync, saved/updated, and other relation lifecycle hooks with parent/related context and IDs/attributes. | 525 | 528 | 40 | 75K | 0 | 26.6 | 33.7 | MIT | 3 months ago | |
| reedware/laravel-composite-relations | 0.74 | — | 22 | 22 | 8 | 7K | 0 | 20.8 | 39.7 | MIT | 3 months ago |
How can I help you explore Laravel packages today?