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 / handleRecordUpdate
https://filamentphp.com/docs/3.x/panels/resources/creating-records#customizing-the-creation-process
Was this page helpful?