Download the PHP package thiagoprz/eloquent-composite-key without Composer
On this page you can find all versions of the php package thiagoprz/eloquent-composite-key. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download thiagoprz/eloquent-composite-key
More information about thiagoprz/eloquent-composite-key
Files in thiagoprz/eloquent-composite-key
Download thiagoprz/eloquent-composite-key
More information about thiagoprz/eloquent-composite-key
Files in thiagoprz/eloquent-composite-key
Vendor thiagoprz
Package eloquent-composite-key
Short Description Eloquent Composite Key Support Package
License MIT
Package eloquent-composite-key
Short Description Eloquent Composite Key Support Package
License MIT
Please rate this library. Is it a good library?
Informations about the package eloquent-composite-key
Eloquent Composite Key
Package to enable composite key support on Eloquent Models.
Installation
Install it with composer:
composer require thiagoprz/eloquent-composite-key
Usage
Define the primaryKey as an array and use the HasCompositeKey trait on your model class.
Using primary keys to find records:
The main idea of this package is to allow Laravel projects use composite keys on models despite Eloquent not supporting them officially (see https://laravel.com/docs/8.x/eloquent#composite-primary-keys).
License
All versions of eloquent-composite-key with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.1 || ^8.0 || ^8.1
The package thiagoprz/eloquent-composite-key contains the following files
Loading the files please wait ....