© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
6 replies
The Huntsman

Add data to two tables from one form

I have 3 tables
employees
employees
,
departments
departments
and
employee_departments
employee_departments
I did it this way because it created a cyclic dependency with just 2 tables, now let's say I have departments created in the department table and now am adding an employee I want add the entry for the
employee_department
employee_department
table at the same time from a second section in the forms wizard, but can someone tell me how to properly configure this? or at least a link to a documentation.
Screenshot_2023-10-02_163127.png
Screenshot_2023-10-02_163140.png
Screenshot_2023-10-02_163156.png
Solution
This explains how to create pivot table entry. https://filamentphp.com/docs/3.x/panels/resources/relation-managers#creating-with-pivot-attributes
Managing relationships - Panel Builder - Filament
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

How do I add data to two tables in one form submission using filament?
FilamentFFilament / ❓┊help
2y ago
How to have a form save data into two tables?
FilamentFFilament / ❓┊help
3y ago
two forms data from one resource to another...
FilamentFFilament / ❓┊help
3y ago
What is the best way to save data into multiple tables from one form?
FilamentFFilament / ❓┊help
3y ago