spatie/laravel-binary-uuid
NOT MAINTAINED. Store UUID primary keys as optimized binary in Laravel models for faster indexing/queries (MySQL/SQLite). Provides UUID generation and Eloquent trait/scopes to encode/decode and query by UUID, plus benchmarks to compare performance.
CHAR(36)) to binary formats (e.g., BINARY(16)).Spatie\BinaryUuid\BinaryUuid trait or use a base model.michaeldyrynda/laravel-efficient-uuid) for feature parity.michaeldyrynda/laravel-efficient-uuid, michaeldyrynda/laravel-model-uuid) been evaluated for feature gaps or trade-offs?webpatser/laravel-uuid).EXPLAIN ANALYZE on UUID queries).uuid CHAR(36), uuid_binary BINARY(16)).BinaryUuid::generate() or a custom script.BinaryUuid trait.php artisan tinker, php artisan migrate:fresh).ext-uuid for UUID generation (though the package may fall back to ramsey/uuid).laravel-babel, spatie/laravel-activitylog). Mitigate via wrapper classes or feature flags.users, orders) with rollback plans.BINARY(16) values in logs).| Failure Scenario | Impact | Mitigation |
|---|---|---|
| Migration corruption | Data loss or application crashes | Backup databases; test migrations in staging. |
| Binary UUID incompatibility | API/third-party integrations break | Feature flags; gradual rollout. |
| Laravel version drift | Package breaks in newer Laravel | Fork the package; use laravel/framework constraints. |
| Performance regression | Queries slower than expected | Monitor with EXPLAIN; revert if needed. |
| Debugging complexity | Harder to trace binary UUIDs | Log string representations; use accessors. |
How can I help you explore Laravel packages today?