Why isn't the tenant key added with ->withPivot() on the roles() relationship? #2680
Closed
juliangums
started this conversation in
General
Replies: 2 comments
-
This was done in Laravel 6, since that version many features have been added |
Beta Was this translation helpful? Give feedback.
0 replies
-
@erikn69 updated and reopened the pull request. Thanks for looking into this. Will close this discussed then. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I noticed I could not find the team id pivot in ->getPivotColumns() or ->pivot and I was wondering why it has not been added like this https://github.com/spatie/laravel-permission/pull/2679/files. Obviously I can see that all checks are failing on there as that seems to mess with the test db but I for my part have just overridden the roles() method in my model the same way and it's all working as expected and I have access to the pivot value now. I am just wondering if this was intentionally done that way and why.
Beta Was this translation helpful? Give feedback.
All reactions