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

How do you do Many To Many Relationship #45

Open
szhorvath opened this issue May 6, 2020 · 2 comments
Open

How do you do Many To Many Relationship #45

szhorvath opened this issue May 6, 2020 · 2 comments

Comments

@szhorvath
Copy link

Hi,

First I'd like to thank you for this package. It is brilliant.
How do you handle many to many relationships? pivot tables?

@hectorwiredlans
Copy link

Hi @szhorvath, I am trying to do the same thing. Have you figured it out? I tried to use pivot tables and the custom pivot tables with the ->using(AccountRoles::class), but how you tell laravel the name of the foreign keys in the relation table?

@szhorvath
Copy link
Author

Hi @hectorwiredlans . Unfortunately, I couldn't make it work with many-to-many. I use laravel to return one-to-many

Hi @szhorvath, I am trying to do the same thing. Have you figured it out? I tried to use pivot tables and the custom pivot tables with the ->using(AccountRoles::class), but how you tell laravel the name of the foreign keys in the relation table?

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

2 participants