mr-punyapal/laravel-extended-relationships
Extra Eloquent relationship helpers for Laravel that cut database queries, improve performance, and reduce duplicate code. Requires PHP 8.3+ and Laravel 12/13, with easy Composer installation.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| biiiiiigmonster/hasin | 0.87 | biiiiiigmonster/hasin brings recursive "has in" relationship queries to Laravel's Eloquent ORM, letting you fetch ancestors, descendants, and other nested tree data with fluent, hasMany-style syntax instead of raw recursive SQL. Ideal for category trees, comment threads, and org charts. | 154 | — | 17 | — | 0 | 9.8 | 0.4 | MIT | 7 months ago | |
| ankurk91/laravel-eloquent-relationships | 0.87 | — | 58 | 59 | 9 | 8K | 0 | 0.3 | 20.7 | MIT | — | |
| atldays/laravel-eloquent-join-relation | 0.86 | Add SQL joins to Laravel Eloquent relationships without dropping to the query builder. atldays/laravel-eloquent-join-relation lets you join related tables through existing relationship definitions, filter and sort by joined columns, and keep clean, readable model code. | 0 | — | 0 | — | 0 | 9.2 | — | MIT | 6 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 | |
| jobmetric/laravel-membership | 0.86 | Laravel Membership by Jobmetric provides a flexible foundation for managing plans, subscriptions, and member access in your PHP applications. Define membership tiers, attach features or permissions, track activation and expiration, and integrate membership checks cleanly into your Laravel models and... | 7 | 7 | 0 | 95 | 0 | 0.3 | 15.3 | MIT | 2 years ago | |
| staudenmeir/eloquent-json-relations | 0.86 | 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,084 | 64 | 344K | 6 | 24.2 | 37.9 | MIT | 8 months ago | |
| korridor/laravel-has-many-merged | 0.86 | Adds a hasManyMerged relationship to Laravel Eloquent, letting you combine several hasMany relations across models into one query-backed collection with sorting, limits, and eager loading. Ideal for unified feeds, timelines, and activity lists. | 90 | 90 | 3 | 7K | 4 | 13.1 | 30.4 | MIT | 6 months ago | |
| xedi/eloquent-sync | 0.86 | xedi/eloquent-sync is a Laravel package for keeping Eloquent models synchronized with external systems. It helps map model data, push and pull changes, and keep local records consistent with remote sources, reducing custom integration boilerplate for sync workflows. | 1 | 1 | 0 | 0 | 1 | 0.2 | — | MIT | 6 years ago | |
| payter/has-column-many | 0.86 | A Laravel package adding a hasColumnMany Eloquent relationship for storing related model IDs in a JSON or array column instead of a pivot table, with familiar attach, detach, sync, and query helpers. | 1 | 1 | 1 | 43 | 0 | 0.0 | 18.7 | MIT | — | |
| rgalstyan/laravel-aggregated-queries | 0.85 | Laravel Aggregated Queries helps you combine multiple database queries into one aggregated call, reducing round trips and simplifying complex reporting. It keeps query builder workflows familiar while making data fetching more efficient and code easier to maintain for dashboards and reports. | 10 | 10 | 0 | 2 | 0 | 2.7 | 1.0 | MIT | 10 months ago | |
| 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 | — | — | |
| paxha/laravel-recursive-relationships | 0.85 | Laravel package for defining and working with recursive relationships in Eloquent models—query parent-child hierarchies, trees, and nested structures with ease. (Approx 160 chars - need closer to 300) Let me expand to ~300 chars: Laravel package for defining and querying recursive relationships in E... | 27 | 27 | 5 | 898 | 1 | 0.4 | 21.0 | MIT | 5 years ago | |
| inani/lazy-belongs-to-many | 0.85 | Laravel package that adds a lazy-loading belongsToMany relationship, letting you defer large many-to-many queries until the collection is actually accessed. Keeps models light while still supporting pivot data, eager loading, and standard relationship methods. | 24 | 25 | 2 | 0 | 0 | 0.2 | — | — | — | |
| masterfri/laravel-smart-relations | 0.85 | Laravel Smart Relations streamlines Eloquent relationship management in Laravel with smarter helpers and conventions for defining, querying, and working with model relations, reducing boilerplate and keeping model code cleaner and easier to maintain. | 6 | — | 1 | — | 0 | 0.4 | — | — | 7 years ago | |
| quentingab/wodel | 0.85 | quentingab/wodel is a Composer-installable Laravel/PHP package from quentingab. It is an early-stage project with limited adoption; consult the repository README for installation, configuration, and usage details before adding it to production. Best suited for evaluation and experimentation. | 0 | 0 | 0 | 1 | 0 | 0.2 | 2.9 | MIT | 5 years ago | |
| ardalanamini/laravel-custom-relation | 0.85 | A Laravel package that lets you define custom Eloquent relationships beyond the built-in hasMany, belongsTo, and morphTo types. Build relations with your own query logic and constraints, keeping complex model associations flexible and readable. | 4 | — | 4 | — | 0 | 0.4 | — | MIT | 3 years ago | |
| reedware/laravel-composite-relations | 0.85 | 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 | |
| culturegr/custom-relation | 0.85 | Easily define custom relationships between Eloquent models, like connecting users to permissions through roles. Includes an Artisan generator and full support for eager-loading, making complex multi-table joins clean and reusable. | 18 | 18 | 4 | 165 | 1 | 21.4 | 15.7 | NOASSERTION | 1 month ago | |
| reedware/laravel-relation-joins | 0.85 | — | 212 | 212 | 22 | 87K | 3 | 20.4 | 39.2 | MIT | 6 months ago | |
| thybag/bonus-laravel-relations | 0.85 | Extends Laravel's Eloquent ORM with bonus relationship types beyond the built-in hasOne, hasMany, and belongsTo helpers, making it easy to define richer model associations and reuse common relation patterns without writing custom query code. | 7 | — | 2 | — | 1 | 13.6 | 0.9 | MIT | 4 months ago |
How can I help you explore Laravel packages today?