You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I hope you can help me. I'm encountering the following error when using the library:
TypeError: Veelasky\LaravelHashId\Repository::idToHash(): Argument #1 ($idKey) must be of type int, string given, called in vendor\veelasky\laravel-hashid\src\Eloquent\HashableId.php on line 77.
I'm trying to use HashId with a primary key that is a string. Could you please advise on how to properly implement HashId in this scenario?
Thank you for your assistance!
The text was updated successfully, but these errors were encountered:
Can you elaborate how you implement the string-type primary key? I think it's unnecessary to hash a string-type key.
String-type usually already strong/non-predictable, such as UUID/ULID. The goal of this package is to avoid predictable increment/integer-based key. You may explain your need so the contributors can consider it, or you can make a PR.
Hello,
I hope you can help me. I'm encountering the following error when using the library:
TypeError: Veelasky\LaravelHashId\Repository::idToHash(): Argument #1 ($idKey) must be of type int, string given, called in vendor\veelasky\laravel-hashid\src\Eloquent\HashableId.php on line 77.
I'm trying to use HashId with a primary key that is a string. Could you please advise on how to properly implement HashId in this scenario?
Thank you for your assistance!
The text was updated successfully, but these errors were encountered: