Our great sponsors
-
-
If you want sortable uuid, you can use something like https://github.com/robinvdvleuten/php-ulid If you simply don't want the database id to be sent/seen by the client, you can use something like https://github.com/krowinski/tinyID to encode it into a string based on the characters you want
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
If you want sortable uuid, you can use something like https://github.com/robinvdvleuten/php-ulid If you simply don't want the database id to be sent/seen by the client, you can use something like https://github.com/krowinski/tinyID to encode it into a string based on the characters you want
Related posts
- Weekly help thread
- weird php results microtime/hrtime
- What are types of bugs that only show up after thousands or millions of times of the code being run.
- Using uuid() in Eloquent
- A UUID can have so many combinations that UUIDs are effectively unique. But it's possible to generate the same one twice, however small the chance. Is it best practice to take this chance into account, checking to be sure you haven't used it?