trait
Illuminate
/
Database
/
Eloquent
/
Concerns
/
HasUlids
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.
HasUlids
Methods
public
initializeHasUlids ( ) : void
Initialize the trait.
public
uniqueIds ( ) : array
Get the columns that should receive a unique identifier.
public
newUniqueId ( ) : string
Generate a new ULID for the model.
public
resolveRouteBindingQuery ( $query , $value , $field ) : Relation
Retrieve the model for a bound value.
Parameters
public
getKeyType ( ) : string
Get the auto-incrementing key type.
public
getIncrementing ( ) : bool
Get the value indicating whether the IDs are incrementing.