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

Problem if I using UUIDs or GUIDs in my User model #61

Closed
devmansurov opened this issue Jan 13, 2022 · 4 comments · Fixed by #62
Closed

Problem if I using UUIDs or GUIDs in my User model #61

devmansurov opened this issue Jan 13, 2022 · 4 comments · Fixed by #62

Comments

@devmansurov
Copy link

How I can use getcandy if I use UUIDs or GUIDs in my User model?

@glennjacobs
Copy link
Contributor

At the moment, you can't. However, you raise a good point and I can't imagine you'd be the only person with this set-up.

We'll take a look and see what can be done.

@glennjacobs
Copy link
Contributor

I've created the PR mentioned above. Be good if you could review it and let us know if it fixes the issue for you.

@glennjacobs glennjacobs linked a pull request Jan 13, 2022 that will close this issue
@devmansurov
Copy link
Author

Add foreign key customization here too

$table->userForeignKey();

@devmansurov
Copy link
Author

devmansurov commented Jan 19, 2022

You must add userForeignKey() everywhere where you use user_id from users table. In carts table too we have user_id.

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

Successfully merging a pull request may close this issue.

2 participants