culturegr/custom-relation
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.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 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 | 55K | 1 | 9.5 | 36.4 | MIT | 7 months ago | |
| quentingab/wodel | 0.86 | 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 | |
| stancl/laravel-hasmanywithinverse | 0.86 | 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 | |
| laravel-interaction/interactions | 0.86 | 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 | |
| binaryk/laravel-restify | 0.85 | Laravel Restify is a fast, modular API builder for Laravel. Define repositories to expose Eloquent models with built-in filtering, sorting, pagination, relationships, validation, and authorization—helping you ship clean RESTful APIs with less boilerplate. | 683 | — | 65 | — | 0 | 26.0 | 0.9 | MIT | 1 week ago | |
| jobmetric/laravel-membership | 0.85 | 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 | |
| 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 | — | — | — | |
| staudenmeir/eloquent-has-many-deep-contracts | 0.85 | 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.1 | 58.3 | MIT | 8 months ago | |
| imanghafoori/eloquent-relativity | 0.85 | Laravel package that lets you declare Eloquent relationships without importing related model classes. Relativity infers the target model from the method name, so hasMany, hasOne, belongsTo and belongsToMany calls stay concise and your models keep fewer use statements. | 148 | 148 | 13 | 27 | 1 | 1.2 | 1.0 | MIT | 2 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 | |
| digital-creative/custom-relationship-field | 0.85 | A Laravel Nova field for customizable relationship selection. Define how related records are searched and displayed, giving Nova resources flexible relationship inputs that fit naturally into forms while reducing the need for custom field code. | 33 | 33 | 7 | 2K | 3 | 1.5 | 23.9 | MIT | 2 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 | — | — | |
| midnightluke/doctrine-relations | 0.85 | Adds Laravel-style relationships to Doctrine entities, letting you define hasOne, hasMany, belongsTo, and belongsToMany associations with simple attributes and query them through an intuitive, Eloquent-like API. | 0 | 0 | 0 | 0 | 0 | 0.0 | — | MIT | — | |
| amethyst/relation | 0.85 | Amethyst Relation is a Laravel package that extends Eloquent relationships with a cleaner API for defining, querying, and managing model relations. It simplifies complex relationship logic and supports common relation patterns out of the box. | 0 | 0 | 0 | 2 | 0 | 0.0 | 6.6 | MIT | — | |
| ordermind/logical-permissions | 0.84 | A Laravel package for expressive, logic-based permission checks. Define roles and permissions with AND/OR/NOT rules, then authorize users against complex conditions using a clean API. Ideal for apps needing flexible access control beyond simple role checks. | 4 | 4 | 1 | 8 | 0 | 0.1 | 5.7 | MIT | — | |
| xedi/eloquent-sync | 0.84 | 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 | |
| whilesmart/eloquent-roles | 0.84 | A lightweight Laravel package for assigning roles and permissions to Eloquent models. Define roles, attach them to users or any model, and check abilities with simple, expressive methods—no heavy dependencies or complex setup required. | 2 | 2 | 2 | 311 | 1 | 7.1 | 29.6 | — | 8 months ago | |
| stillat/relationships | 0.84 | A Laravel package that streamlines working with model relationships through a fluent, expressive API. It helps define and manage related records, reduce boilerplate, and keep Eloquent models clean and organized. | 25 | 25 | 5 | 3K | 1 | 7.1 | 30.0 | MIT | 8 months ago | |
| zachflower/eloquent-interactions | 0.84 | Add likes, favorites, bookmarks, and other interactions to any Eloquent model in Laravel. A flexible trait-based package for recording user interactions with clean polymorphic relationships, reusable query scopes, and simple APIs. | 13 | — | 3 | — | 0 | 0.2 | — | MIT | 2 years ago |
How can I help you explore Laravel packages today?