Using UUIDs with Laravel’s Eloquent ORM
10 years ago
By default, Eloquent uses an auto-incrementing integer as the primary key for its tables. While most of the time this is totally acceptable, sometimes there is a need for primary keys to be less predictable.
Link: