Reordering records with order record in a pivot table
I have a
texts
and categories
table. The Text
model has a belongsToMany
relationship with the Category
model.
The pivot table category_text
has a sort
column.
Is there a way to reorder the table and store the order in the pivot table?
At the moment I get this error:
1 Reply
Fixed it by creating a Model class for the pivot table