alsofronie/eloquent-uuid
alsofronie/eloquent-uuid adds UUID primary key support to Laravel Eloquent models, with traits that automatically generate UUIDs on create and let models replace auto-incrementing integer keys with minimal configuration.
HasUuids natively. The buy case is weak; the decision record should note that this is a commodity capability, not a differentiator.Consider it only when all of the following hold:
Look elsewhere (or build in-house) when:
HasUuids / HasUniqueStringIds and uuid column type; adding a 2017 package here is pure liability.BINARY(16) with ramsey/uuid), UUID validation, or UUID-aware route model binding — use ramsey/uuid or framework-native tooling directly.Executives: This is a 94-star, MIT-licensed micro-library that adds UUID primary keys to Eloquent models on Laravel 5.1/5.2. It has had no release since 2017 and no active maintainer. The capability it provides is now native to modern Laravel, so it carries near-zero strategic value and non-trivial technical debt. Recommendation: do not introduce it into new work; treat it as a stopgap for legacy systems only, and fund the Laravel upgrade that removes the need for it.
Engineering: The trait is a commodity — a few dozen lines we could own outright, and a first-class feature in Laravel 9+. Its constraints will pin us to EOL framework versions, it will receive no patches, and it offers no support for UUIDv7/ULID, binary storage, or validation. If we must use it short-term, wrap it behind our own trait so we can swap the implementation during the upgrade without touching every model. The real decision to sign off on is the identifier scheme (v4 vs. time-ordered, string vs. binary, which tables), because that is expensive to change later; the library choice is incidental and reversible.
How can I help you explore Laravel packages today?