You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there I am working with a pivot table that matches users to projects. Users can either be leaders or members. I therefore defined two relationship functions. One of them with wherePivot('role', 'leader') and the other one with wherePivot('role', 'member'). If I now attach or sync the relationships using these functions I still have to set the role manually for each id. I think it would be a nice feature that functions with wherePivot() automatically set that value when attaching or syncing.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there I am working with a pivot table that matches users to projects. Users can either be leaders or members. I therefore defined two relationship functions. One of them with
wherePivot('role', 'leader')
and the other one withwherePivot('role', 'member')
. If I now attach or sync the relationships using these functions I still have to set the role manually for each id. I think it would be a nice feature that functions withwherePivot()
automatically set that value when attaching or syncing.Beta Was this translation helpful? Give feedback.
All reactions