Author: Manuel Lemos
Updated on: 2021-03-29
Posted on: 2021-03-29
Package: Eloquent Composite Primary Key
However, in certain applications there is the need to use more than one table field as unique value key to access the table records faster.
This package provides a trait that can be used with Laravel model objects to define which fields will be used as primary keys composed with values of more than one field.
About the Eloquent Composite Primary Key Package
The basic purpose is: Define object properties to use as primary keys
Here follows in more detail what it does:
This package can be used to define object properties to use as primary keys.
It provides a trait that can be used in Laravel model classes to define multiple properties that will be used as primary keys.
The names of the primary key properties should be defined in model classes as an array assigned to a primary class protected class variable.
This package was considered notable for implementing its benefits in a way that is worth noticing.
Notable PHP packages can be often considered innovative. If this package is also innovative, it can be nominated to the PHP Innovation Award and the author may win prizes and recognition for sharing innovative packages.
If you also developed your own notable or innovative packages consider sharing them, so you can also earn more visibility for your package as well nice prizes.
One nice prize that many PHP developers want and you may like is the PHP elePHPant mascot plush.
You need to be a registered user or login to post a comment
Login Immediately with your account on:
No comments were submitted yet.