© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
5 replies
Amer Almoghrabi

How do I add data to two tables in one form submission using filament?

Hello @all ,
Im looking for the best practice to handle two models create/update in one form submission noting that the second model is belongs to the first one.
Thanks
Solution
if you are using resources, you can use
handleRecordCreation
handleRecordCreation
/
handleRecordUpdate
handleRecordUpdate

https://filamentphp.com/docs/3.x/panels/resources/creating-records#customizing-the-creation-process
Creating records - 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

Add data to two tables from one form
FilamentFFilament / ❓┊help
3y ago
How to have a form save data into two tables?
FilamentFFilament / ❓┊help
3y ago
How to add multiple tables in 1 form?
FilamentFFilament / ❓┊help
3y ago