Skip to content
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

primary key uuid => change $keyType #233

Open
Grummfy opened this issue Mar 4, 2022 · 1 comment
Open

primary key uuid => change $keyType #233

Grummfy opened this issue Mar 4, 2022 · 1 comment

Comments

@Grummfy
Copy link

Grummfy commented Mar 4, 2022

Hello,
when the primary key is a uuid (string) we need to add
protected $keyType = 'string'; in the model

If possible add a trait in the usage too (custom value)

@Grummfy
Copy link
Author

Grummfy commented Sep 23, 2022

note, since 9.26 I think, laravel has a trait dedicated to uuid

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant