mr-punyapal/laravel-extended-relationships
Adds efficient, extended Eloquent relationship helpers for Laravel models to cut queries, boost performance, and reduce duplicate code. Includes a HasExtendedRelationships trait and custom relations like belongsToManyKeys. Compatible with Laravel 11–13 and PHP 8.2+.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| korridor/laravel-has-many-merged | 0.86 | Laravel package adding a “hasManyMerged” relationship to combine results from multiple hasMany relations into one merged collection/query. Useful for aggregating related models across different types or sources while keeping a familiar Eloquent API. | 90 | 90 | 3 | 4K | 5 | 22.5 | 29.0 | MIT | 1 month ago | |
| staudenmeir/eloquent-has-many-deep | 0.86 | 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,862 | 2,864 | 160 | 538K | 2 | 45.4 | 35.9 | MIT | 2 months ago | |
| msafadi/laravel-eloquent-join-with | 0.85 | — | 165 | 165 | 6 | 1 | 2 | 13.2 | 0.2 | MIT | 6 months ago | |
| sleeping-owl/with-join | 0.85 | — | 92 | 94 | 25 | 186 | 6 | 4.6 | 9.2 | MIT | 11 years ago | |
| znck/belongs-to-through | 0.85 | — | 1,265 | 605 | 97 | 330 | 0 | 32.9 | 1.6 | MIT | 3 months ago | |
| awobaz/compoships | 0.84 | Adds composite-key relationship support to Laravel Eloquent. Define hasOne/hasMany/belongsTo relations matching two or more columns so eager loading works with legacy or third‑party schemas, using a custom base Model or Compoships trait. | 1,208 | 1,209 | 142 | 325K | 34 | 42.1 | 54.4 | MIT | 1 month ago | |
| ankurk91/laravel-eloquent-relationships | 0.82 | — | 58 | 59 | 9 | 7K | 0 | 0.3 | 20.4 | MIT | — | |
| kirschbaum-development/eloquent-power-joins | 0.82 | 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,569 | 1,570 | 101 | 2M | 10 | 40.4 | 54.2 | MIT | 2 months ago | |
| 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 | 241K | 6 | 32.7 | 38.6 | MIT | 3 months ago | |
| reedware/laravel-relation-joins | 0.81 | — | 212 | 212 | 23 | 36K | 3 | 28.8 | 35.9 | MIT | 1 month ago | |
| zing/laravel-eloquent-relationships | 0.79 | — | 8 | 8 | 0 | 6K | 1 | 19.4 | 44.8 | MIT | 2 months ago | |
| stayallive/laravel-inverse-relations | 0.75 | — | 32 | 31 | 2 | 7 | 0 | 1.4 | 1.2 | MIT | 2 years 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. | 524 | 526 | 40 | 59K | 0 | 13.3 | 31.2 | MIT | 1 week ago | |
| reedware/laravel-composite-relations | 0.74 | — | 20 | 19 | 7 | 8K | 2 | 5.2 | 36.7 | MIT | 11 months ago |
How can I help you explore Laravel packages today?