I'm doing a dashboard using FilamentPhp. I have a resource for authors and a resource for elements created by those authors. In the elements resource I have:
Forms\Components\Select::make('author_id')->relationship('author', 'name')
Now I want to be able to create an author without leaving the element create/edit form. I found that the component has a createOptionForm method that allows to do what I want but it recives a new form schema. Are there any way to call the one already existing in the authors resource?
I have tried sending this funcion the resource, the action, the url, but I can't get it to work withou copying the whole form. I don't like this solution because it doubles the maintenance time of the authors section and I have some more cases like that.