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,
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?
The text was updated successfully, but these errors were encountered:
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 thetracks
table and not in theartist_track
pivot table.Any idea, please?
The text was updated successfully, but these errors were encountered: