Form HasOne relationship
I would like to use one form to create a model and a related model (hasOne).
But not all models will have the related model. Is there a way to instruct the form to create the related model only when the relevant fields are filled?
2 Replies
You can customize the creation process: https://filamentphp.com/docs/2.x/admin/resources/creating-records#customizing-the-creation-process
Filament
Creating records - Resources - Admin Panel - Filament
The elegant TALL stack admin panel for Laravel artisans.
Thanks. This is what I required. Will try it out