nova-sortable icon indicating copy to clipboard operation
nova-sortable copied to clipboard

BelongsToMany issue

Open khalilst opened this issue 8 months ago • 0 comments

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?

khalilst avatar Jun 03 '24 11:06 khalilst