Model Class
primaryKeys()
Signature
Section titled “Signature”primaryKeys() — returns string
Available in: model
Category: Miscellaneous Functions
Description
Section titled “Description”Alias for primaryKey().
Use this for better readability when you’re accessing multiple primary keys.
Parameters
Section titled “Parameters”| Name | Type | Required | Default | Description |
|---|---|---|---|---|
position | numeric | no | 0 | If you are accessing a composite primary key, pass the position of a single key to fetch. |