HasUlids
trait HasUlids (View source)
Traits
Methods
string
newUniqueId()
Generate a new unique key for the model.
bool
isValidUniqueId(mixed $value)
Determine if given key is valid.
resolveRouteBindingQuery($query, mixed $value, string|null $field = null)
Retrieve the model for a bound value.
from
HasUniqueStringIds
bool
getIncrementing()
Get the value indicating whether the IDs are incrementing.
from
HasUniqueStringIds
never
handleInvalidUniqueId(mixed $value, string|null $field)
Throw an exception for the given invalid unique ID.
from
HasUniqueStringIds
Details
Builder
resolveRouteBindingQuery($query, mixed $value, string|null $field = null)
Retrieve the model for a bound value.