gbuckingham89/eloquent-uuid
Adds UUID primary key support to Laravel Eloquent models, automatically generating UUIDs on creation so records use string keys instead of auto-incrementing integers. Drop-in trait with minimal configuration required.
Eloquent UUID is a small Laravel package that adds UUID primary key support to Eloquent models. Instead of auto-incrementing integers, models using the provided trait get a generated UUIDv4 automatically assigned on creation, keeping your schema portable and IDs non-sequential.
It integrates directly with Eloquent's model events, so no changes are needed to your application code beyond adding the trait and adjusting your migrations to use a UUID column type.
$keyType and incrementing settings configured for youHow can I help you explore Laravel packages today?