Skip to content

BelongsToMany issue #203

Open
Open
@khalilst

Description

@khalilst

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions