awobaz/compoships
Compoships enables Laravel Eloquent relationships on composite keys—match two or more columns for hasOne/hasMany/belongsTo, including eager loading. Ideal for legacy or third‑party schemas where single-column foreign keys aren’t possible.
Compoships adds support for multi-column (composite) relationships in Laravel’s Eloquent ORM, enabling hasOne/hasMany/belongsTo relations that match on two or more columns—ideal for legacy or third‑party schemas where single-key relations aren’t enough.
Instead of fragile where constraints that break with eager loading, Compoships lets Eloquent resolve relationships using composite keys consistently.
with())How can I help you explore Laravel packages today?