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

BelongsToMany issue #203

Open
khalilst opened this issue Jun 3, 2024 · 0 comments
Open

BelongsToMany issue #203

khalilst opened this issue Jun 3, 2024 · 0 comments

Comments

@khalilst
Copy link

khalilst commented Jun 3, 2024

Hi,
I'm trying to use sortable for a BelongsToMany relation only.
It's working fine for the model but it's not the case I'm looking for.
Following documentation here, it asks for sortable settings in the pivot table but I want to sort based on the main model used for the relation.

Example for Artists/Tracks:
Let's reorder tracks for each artist. So the track should have an ordering_column which is in the tracks table and not in the artist_track pivot table.

Any idea, please?

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

1 participant