HasVersion7Uuids
trait HasVersion7Uuids (View source)
Traits
Methods
string
newUniqueId()
Generate a new UUID (version 7) for the model.
resolveRouteBindingQuery($query, mixed $value, string|null $field = null)
Retrieve the model for a bound value.
from
HasUuids
Details
void
initializeHasUuids()
Initialize the trait.
array
uniqueIds()
Get the columns that should receive a unique identifier.
string
newUniqueId()
Generate a new UUID (version 7) for the model.
Builder
resolveRouteBindingQuery($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.