FilamentF
Filament16mo ago
Pscl

How to Attach or create a polymorphic relation model to another model in the relation manager?

Hey all,

How to Attach or create a polymorphic relation model to another model in the relation manager?

In the relation manager there is the CreateAction and AttachAction. My goal is to have just one button and let the user search for an item and if no results, it suggest to add it.

Did I miss out any references in documentation for this?

https://filamentphp.com/docs/3.x/forms/fields/select#creating-a-new-option-in-a-modal

this seems not to work for polymorphic many to many relations.

THX!
Was this page helpful?