eig/eloquent-uuid
A Laravel package that lets Eloquent models use UUID primary keys instead of auto-incrementing integers. Drop it into existing models to generate unique, non-sequential IDs automatically for safer, distributed-friendly records.
eig/eloquent-uuid brings first-class UUID primary keys to Laravel's Eloquent ORM with minimal configuration. By applying the provided trait to a model, keys are generated automatically on creation and resolved transparently, so you can work with string-based identifiers without touching your existing query code.
Ideal for distributed systems, multi-tenant apps, or any schema where auto-incrementing integers don't fit, the package keeps Eloquent's conventions intact while adding UUID-aware behavior for routing, relationships, and mass assignment.
How can I help you explore Laravel packages today?