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

Added example when using Sync and setting pivot data attributes #267

Closed
wants to merge 2 commits into from
Closed

Added example when using Sync and setting pivot data attributes #267

wants to merge 2 commits into from

Conversation

garygreen
Copy link
Contributor

Currently the documentation only mentions you can use an array of ids when using sync, however you can use a keyed-array of ids with an array of attributes to set on the pivot, similar to attach.

Currently the documentation only mentions you can use an array of ids when using `sync`, however you can use a keyed-array of ids with an array of attributes to set on the pivot, similar to `attach`.
@garygreen
Copy link
Contributor Author

Updated the data attributes to better reflect what the user roles model field could be and also match up with the attach example.

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.

1 participant