bmatovu/laravel-eloquent-uuid
A Laravel package that adds UUID support to Eloquent models, letting you use universally unique identifiers as primary keys instead of auto-incrementing integers. It handles key generation and configuration for UUID-based models.
bmatovu/laravel-eloquent-uuid adds effortless UUID primary keys to Laravel Eloquent models. Add a trait to a model and it automatically receives collision-resistant, non-sequential identifiers—no more exposing auto-incrementing IDs in URLs, APIs, or public resources. It's a lightweight fit for distributed systems, offline-first apps, and multi-database setups where predictable integer keys become a liability.
use statement per modelHow can I help you explore Laravel packages today?