HasUniqueIds
trait HasUniqueIds (View source)
Properties
| bool | $usesUniqueIds | Indicates if the model uses unique ids. |
Methods
bool
usesUniqueIds()
Determine if the model uses unique ids.
void
setUniqueIds()
Generate unique keys for the model.
string
newUniqueId()
Generate a new key for the model.
array
uniqueIds()
Get the columns that should receive a unique identifier.
Details
bool
usesUniqueIds()
Determine if the model uses unique ids.
void
setUniqueIds()
Generate unique keys for the model.
string
newUniqueId()
Generate a new key for the model.
array
uniqueIds()
Get the columns that should receive a unique identifier.
Laravel Cloud is the best place to deploy Laravel, Nuxt, Express, Hono, Node.js, Bun, Go, Flask, Python, and more, with dedicated infrastructure available on AWS through Laravel Private Cloud.