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

Feature: Support nested MorphToMany with pivot values #575

Merged
merged 6 commits into from
Dec 2, 2022
Merged

Feature: Support nested MorphToMany with pivot values #575

merged 6 commits into from
Dec 2, 2022

Conversation

Peterragheb
Copy link
Contributor

In a previously merged PR the support for nested HasMany and BelongsToMany relationships was added.

Since MorphToMany is a subclass of BelongsToMany why not check if the relationship is instance of MorphToMany instead of exact class. That way the package support MorphToMany with pivot values without the need to change anything else in the code.

@Peterragheb Peterragheb changed the title Feature/support belongs to and belongs to many sub relationships Feature: Support nested MorphToMany with pivot values Dec 2, 2022
@shalvah shalvah merged commit f550dd4 into knuckleswtf:master Dec 2, 2022
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 this pull request may close these issues.

2 participants