FilamentF
Filament3y ago
Veur

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:
Call to a member function update() on null
vendor/filament/tables/src/Concerns/CanReorderRecords.php: 35
Was this page helpful?