How to have a form save data into two tables?

I have a postResource with a create form which save data in two tables. first table for post information and another for images table. posts table does not have any id for images table. Instead media table has an id for post_id. When click create/save button then each data goes to their own table. I don't want to use media-library. #form-builder
Was this page helpful?