kingmaker/laravel-many-to-many-self-relationship
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.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| staudenmeir/eloquent-has-many-deep-contracts | 0.87 | Contracts for staudenmeir/eloquent-has-many-deep. Includes the ConcatenableRelation contract to make third-party relationship packages concatenable with HasManyDeep, improving interoperability when combining deep Eloquent relations. | 7 | 7 | 1 | 1M | 0 | 8.2 | 58.4 | MIT | 8 months ago | |
| stancl/laravel-hasmanywithinverse | 0.85 | 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 | |
| stayallive/laravel-inverse-relations | 0.85 | — | 31 | 31 | 1 | 0 | 0 | 1.4 | — | MIT | 2 years ago | |
| laravel-interaction/interactions | 0.85 | Laravel Interaction lets Eloquent models interact polymorphically—likes, favorites, votes, follows, bookmarks, subscriptions, and more. Attach reusable interaction types to any model, query who interacted and what they interacted with, and build social features with clean, extendable APIs. | 1 | — | 0 | — | 0 | 8.4 | — | MIT | 7 months ago | |
| znck/belongs-to-through | 0.85 | — | 1,269 | 605 | 97 | 637 | 0 | 24.6 | 2.6 | MIT | 8 months ago | |
| mr-punyapal/laravel-extended-relationships | 0.85 | 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. | 174 | 174 | 8 | 1K | 1 | 21.2 | 14.0 | MIT | 2 months ago | |
| staudenmeir/eloquent-eager-limit-x-laravel-adjacency-list | 0.85 | 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 | |
| korridor/laravel-has-many-merged | 0.85 | 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 | |
| altek/eventually | 0.85 | Eventually is a Laravel event sourcing package for modeling applications around domain events. It offers aggregates, event storage, projectors, and reactors, giving you an expressive way to persist state changes as an append-only event log. | 0 | 8 | — | 30K | — | 0.0 | 55.3 | — | — | |
| laravel-interaction/like | 0.85 | A Laravel package for adding like and unlike interactions to your Eloquent models. Use a simple trait to let users like any model, toggle likes, check status, and query like counts with ease. | 4 | — | 0 | — | 0 | 0.3 | — | MIT | 5 years ago | |
| gabrielesbaiz/duplicate-toolkit | 0.84 | Laravel package for duplicating Eloquent models and their relationships. Clone records with customizable column overrides, relationship handling, and events via a simple API, making it easy to create reusable copies of templates, content, or configuration records. | 0 | 0 | 0 | 4K | 0 | 18.0 | 57.0 | MIT | 1 month ago | |
| ankurk91/laravel-eloquent-relationships | 0.84 | — | 58 | 59 | 9 | 8K | 0 | 0.3 | 20.7 | MIT | — | |
| staudenmeir/laravel-merged-relations | 0.84 | 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 | |
| zing/laravel-eloquent-relationships | 0.84 | — | 8 | 8 | 0 | 39K | 1 | 22.4 | 58.5 | MIT | 3 weeks ago | |
| audunru/eager-load-pivot-relations | 0.84 | 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 | |
| fico7489/laravel-eloquent-join | 0.84 | 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 |
|
| staudenmeir/laravel-adjacency-list | 0.84 | Laravel Eloquent extension that adds recursive relationships for tree and graph structures using common table expressions (CTEs). Traverse categories, page hierarchies, nested comments, and more across MySQL, PostgreSQL, SQLite, SQL Server, and MariaDB. | 1,578 | 1,579 | 113 | 469K | 5 | 40.6 | 40.8 | MIT | 1 month ago | |
| biiiiiigmonster/hasin | 0.84 | 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 | |
| reedware/laravel-relation-joins | 0.84 | — | 212 | 212 | 22 | 87K | 3 | 20.4 | 39.2 | MIT | 6 months ago | |
| culturegr/custom-relation | 0.84 | 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 |
How can I help you explore Laravel packages today?