Saving to database as unique value #27
Unanswered
LeftPinkie
asked this question in
Q&A
Replies: 1 comment
-
No, it does not do any collision detection. https://github.com/deligoez/laravel-model-hashid/blob/main/src/Traits/SavesHashId.php#L18-L29 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I would like to save the hash ID to the database in a unique field... Does this library check if a hash ID already exist in the database and attempt to generate another one? If so how many attempts will it make before ending with an error?
Beta Was this translation helpful? Give feedback.
All reactions