On this page
HasUniqueIds
trait HasUniqueIds (View source)
Properties
bool | $usesUniqueIds | Indicates if the model uses unique ids. |
Methods
bool | usesUniqueIds() Determine if the model uses unique ids. |
|
void | setUniqueIds() Generate a unique keys for model. |
|
string | newUniqueId() Generate a new key for the model. |
|
array | uniqueIds() Get the columns that should receive a unique identifier. |
Details
bool usesUniqueIds()
Determine if the model uses unique ids.
void setUniqueIds()
Generate a unique keys for model.
string newUniqueId()
Generate a new key for the model.
array uniqueIds()
Get the columns that should receive a unique identifier.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/10.x/Illuminate/Database/Eloquent/Concerns/HasUniqueIds.html