-
Notifications
You must be signed in to change notification settings - Fork 418
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Same result for different numbers #202
Comments
K and k are different characters. |
omg, so stupid of me I'm sorry. Had it saving to the MySQL database which is not considering the casing for the unique constraint 🤦♂️ thank you @vinkla! btw I've noticed that in the docs the recommended PHP library is https://github.com/sqids/sqids-php is that repo going to eventually replace this one? |
Don't recommend saving the hashed IDs in the database.
Sqids is a successor but Hashids isn't going anywhere. |
why not? |
HashIDs (And Sqids) are meant to hide the real number used for the PK. So the database will have a number ID (1, 40, 200, etc.), but the end user will see the results of encoding to HashIDs in the URL, for example. |
Hi there, I'm using the library on a Laravel project to generate a string counterpart of the model unique identifier (integer).
I successfully used it on one model but now having conflicts with another one as you can see on the screenshot.
Am I missing something?
The text was updated successfully, but these errors were encountered: