© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
1 reply
ATOMICMAN

Editing pivot table relating 3 tables

I have 3 tables, Users, Departments, and Unit. Each unit has departments and departments have users.
I want to be able to allow access to multiple departments of multiple units and control it from a form within User resource.
How can I approach this? I'm a bit new to Filament

An example of the pivot table can look like:
| user_id | unit_id | department_id |
+---------+---------+---------------+
| 1       | 1       | 1             |
+---------+---------+---------------+
| 1       | 1       | 2             |
| user_id | unit_id | department_id |
+---------+---------+---------------+
| 1       | 1       | 1             |
+---------+---------+---------------+
| 1       | 1       | 2             |
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

Update pivot table when editing record
FilamentFFilament / ❓┊help
2y ago
pivot table export
FilamentFFilament / ❓┊help
2y ago
Show Pivot Table
FilamentFFilament / ❓┊help
3y ago
Editing select label with pivot values
FilamentFFilament / ❓┊help
2y ago