nova-sortable
nova-sortable copied to clipboard
BelongsToMany issue
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?