On this page
HasUlids
trait HasUlids (View source)
Methods
void | initializeHasUlids() Initialize the trait. |
|
array | uniqueIds() Get the columns that should receive a unique identifier. |
|
string | newUniqueId() Generate a new ULID for the model. |
|
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. |
Details
void initializeHasUlids()
Initialize the trait.
array uniqueIds()
Get the columns that should receive a unique identifier.
string newUniqueId()
Generate a new ULID for the model.
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.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/10.x/Illuminate/Database/Eloquent/Concerns/HasUlids.html