trait HasUniqueIds (View source)
| bool | $usesUniqueIds | Indicates if the model uses unique ids. |
| bool | usesUniqueIds()
Determine if the model uses unique ids. | |
| void | setUniqueIds()
Generate unique keys for the model. | |
| string | newUniqueId()
Generate a new key for the model. | |
| array | uniqueIds()
Get the columns that should receive a unique identifier. |
Determine if the model uses unique ids.
Generate unique keys for the model.
Generate a new key for the model.
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/11.x/Illuminate/Database/Eloquent/Concerns/HasUniqueIds.html