Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Custom Relation Laravel Package

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.

View on GitHub
Deep Wiki
Context7
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
View on GitHub
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
View on GitHub
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
View on GitHub
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
View on GitHub
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
View on GitHub
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
View on GitHub
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 — — —
View on GitHub
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
View on GitHub
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
View on GitHub
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
View on GitHub
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
View on GitHub
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
View on GitHub
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 — —
View on GitHub
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 —
View on GitHub
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 —
View on GitHub
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 —
View on GitHub
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
View on GitHub
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
View on GitHub
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
View on GitHub
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
View on GitHub
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
oxygen/data
oxygen/core
jengo/base
xiloryx/log-collector
a21ns1g4ts/filament-stripe
la-php/laravel-admin
artisan-build/community-prompts
vleroy/smart
ayles-software/laravel-australian-public-holidays
cboxdk/laravel-id-spatie
cboxdk/laravel-id-billing
cboxdk/laravel-id-billing-bridge
simple-as-fuck/php-performance-log
hsluv/hsluv
seampact/codegen
seampact/hooks
seampact/ir
mehedimi/laravel-amp-mail
happones/laravel-vue-i18n-generator
jwerd/inertia-table