HasUuids
trait HasUuids (View source)
Methods
Generate a primary UUID for the model.
Generate a new UUID for the model.
Get the columns that should receive a unique identifier.
Retrieve the model for a bound value.
Get the auto-incrementing key type.
Get the value indicating whether the IDs are incrementing.
Details
static void
bootHasUuids()
Generate a primary UUID for the model.
string
newUniqueId()
Generate a new UUID for the model.
array
uniqueIds()
Get the columns that should receive a unique identifier.
Relation
resolveRouteBindingQuery(Model|Relation $query, mixed $value, string|null $field = null)
Retrieve the model for a bound value.
string
getKeyType()
Get the auto-incrementing key type.
bool
getIncrementing()
Get the value indicating whether the IDs are incrementing.
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.