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.
How can I help you explore Laravel packages today?