|Classes of Thiago Przyczynski||>||Eloquent Composite Primary Key||>||README.md||>||Download|
Eloquent Composite Key
Package to enable composite key support on Eloquent Models.
Install it with composer:
Define the primaryKey as an array and use the HasCompositeKey trait on your model.
The idea of this package is to allow eloquent models to use composite keys despite that Eloquent doesn't support it officially (see https://laravel.com/docs/8.x/eloquent#composite-primary-keys).