marquine/eloquent-uuid
marquine/eloquent-uuid adds UUID primary key support to Laravel Eloquent models, replacing auto-incrementing integer IDs with globally unique identifiers through a simple trait. Models keep their usual relationships and query behavior while gaining non-sequential, harder-to-guess keys with minimal c...
HasUuids in modern Laravel), a direct Str::uuid() + schema change, or a maintained UUID library.Consider it when:
Look elsewhere when:
To executives: This is a tiny, MIT-licensed Laravel helper for UUID primary keys. It could speed up a narrow feature that needs non-sequential IDs, but it is not a strategic platform bet. Given low adoption, we should treat it as a tactical option, validate it with engineering, and prefer Laravel-native UUID support or an in-house trait if the risk is not worth it.
To engineering: Evaluate the package as a candidate trait, not as an assumed standard. Confirm Laravel/PHP compatibility, inspect the implementation, test route model binding, relationships, and serialization, and pin the version. If the code is trivial, replicate it internally or use Laravel’s native UUID support. Adopt only if it reduces delivery time without creating a long-term maintenance liability.
How can I help you explore Laravel packages today?