trait HasVersion7Uuids (View source)

Traits

Methods

void
initializeHasUuids()

Initialize the trait.

from  HasUuids
array
uniqueIds()

Get the columns that should receive a unique identifier.

from  HasUuids
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
string
getKeyType()

Get the auto-incrementing key type.

from  HasUuids
bool
getIncrementing()

Get the value indicating whether the IDs are incrementing.

from  HasUuids

Details

void initializeHasUuids()

Initialize the trait.

Return Value

void

array uniqueIds()

Get the columns that should receive a unique identifier.

Return Value

array

string newUniqueId()

Generate a new UUID (version 7) for the model.

Return Value

string

Builder resolveRouteBindingQuery($query, mixed $value, string|null $field = null)

Retrieve the model for a bound value.

Parameters

$query
mixed $value
string|null $field

Return Value

Builder

Exceptions

ModelNotFoundException

string getKeyType()

Get the auto-incrementing key type.

Return Value

string

bool getIncrementing()

Get the value indicating whether the IDs are incrementing.

Return Value

bool