© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•9mo ago•
2 replies
YoBoi

🧩 How to Use reorderable() with Pivot Table Columns in Many-to-Many Relationships?

Hi! I’m trying to implement row reordering using Filament’s
->reorderable()
->reorderable()
method, but the order I need to update lives in a pivot table of a many-to-many relationship.

Has anyone successfully used
->reorderable()
->reorderable()
to update an
order
order
column in a pivot table?

For example, suppose we have
Project
Project
and
Task
Task
models with a many-to-many relationship, and the pivot table
project_task
project_task
contains an
order
order
column. I want to be able to reorder tasks within a project and have it update
project_task.order
project_task.order
.

What would be the correct approach to get reordering to work in this kind of setup?

Any small working example or tip would be really appreciated. 🙏
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Retrieve data in pivot table many to many relationship
FilamentFFilament / ❓┊help
3y ago
How use repeaters with MorphToMany relationship with pivot columns
FilamentFFilament / ❓┊help
2y ago
How to reorder columns by a column in a pivot table
FilamentFFilament / ❓┊help
3y ago