primaryKeys()
Alias for primaryKey()
.
Use this for better readability when you're accessing multiple primary keys.
// Get a list of the names of the primary keys in the table mapped to the `employee` model (which is the `employees` table by default) keyNames = model("employee").primaryKeys();
Copied!