Master-Detail


Master-Detail components can be added to any CRUD in which the model has HasMany relationships.

When generating the code, it creates a Livewire component that allows to add and edit children resources (detail) from a parent resource (master).

image


Creating

To add a new detail, you can click on the Has Many Detail button under the Components Section...


image


It will open a modal asking for what relationship you are creating the Master-Detail:


image


{info} After creating a new Master-Detail, Vemto will automatically create a related CRUD that you can edit exactly in the same way as you edit common CRUD applications.

You can see more details about how to edit CRUD applications here.