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

Laravel Composite Relations Laravel Package

reedware/laravel-composite-relations

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.

View on GitHub
Deep Wiki
Context7
v6.0.0
  • Added Laravel 13 support
  • Added PHP 8.5 support
  • Dropped Laravel 11 support (EOL was March 12th, 2026)
v5.0.0
  • Added Laravel 12 support
  • Added PHP 8.4 support
  • Dropped Laravel 10 support (EOL was February 4th, 2025)
  • Dropped PHP 8.1 support (EOL is Dec ember 31st, 2025)

Laravel 11 (the new minimum) offers better generics for relations, so a lot of workarounds for Laravel 10 were removed.

v4.0.0

Laravel 9 reached its end of life earlier this year. I have dropped support for L8 and L9, and added official support for Laravel 11.

With this comes dropping PHP 7.2 and 8.0, with the new minimum of PHP 8.1.

PHP 8 offers better type-hinting, and overall works better with static analysis tooling. I have incorporated PHPStan into the pipeline builds moving forward to offer better quality code for everyone.

The PHPStan level is rocking a solid 9 will full support of generics, and the GitHub actions have been bumped from Node 16 to Node 20.

v3.0.1
v3.0.0

Added L9 and L10 support. Dropped L6 and L7 support.

v2.0.4
v2.0.3
v2.0.2
v2.0.1
v2.0.0
v1.1.0
v1.0.1
v1.0.0
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.
htinlynn/genius-helper
maco-studios/hephaestus
elmogy/larafast
xeviant/laravel-paystack
gorilladash/laravel-website-sdk
martialbe/flysystem-oss
chondal/3312client
jeroen-g/flickr
opscale-co/nova-genbi
itsjustvita/laravel-retention
tequilarapido/trackit
gregsphotography/site-builder-filament
cabaoctavio/laravel-query-log
gregsphotography/site-builder-components
io-digital/clickatell
snowsoft/laravel-admin
oxygen/auth
relicsoftware/barakah-payment-gateway
tobya/work-with-composer
equipc/laravel-email-validator