How to create a new table and its relationship at the same time?
I have a database as shown below, I want to create 2 tables at the same time and I have created the detail_units table and I want the id value of this table to be retrieved and used in the dishes table without having to select. Is that really possible?
5 Replies
Sorry, not sure exactly what you are asking and how it applies to Filament.
@Username: 11011101 maybe this is what you're looking for https://filamentphp.com/docs/3.x/forms/fields/select#creating-a-new-option-in-a-modal
Is there a way for me to select a field that can be saved in 2 different places?
First saved from resource, and you update others table using afterCreate()
many thanks for your help