F
Filament2y 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
Call to a member function update() on null
vendor/filament/tables/src/Concerns/CanReorderRecords.php: 35
1 Reply
Veur
VeurOP2y ago
Fixed it by creating a Model class for the pivot table
Want results from more Discord servers?
Add your server