F
Filamentβ€’7mo ago
Antonio

form builder MorphToSelect (v2)

Hey everyone πŸ™‚ I have a question on the form builder regarding MorphToSelect component. This is the component i already have:
MorphToSelect::make('promoable')->types([
MorphToSelect\Type::make(Webinar::class)->label('Web')>titleColumnName('title'),
])->searchable()->label('Resource')
MorphToSelect::make('promoable')->types([
MorphToSelect\Type::make(Webinar::class)->label('Web')>titleColumnName('title'),
])->searchable()->label('Resource')
MorphToSelect has a searchable method. Are there any options to have multiple() method as well ? To selected multiple morph relations ? Thank you!!
2 Replies
Dennis Koch
Dennis Kochβ€’7mo ago
Isn’t MorphTo just a singular? And what you are looking for is MorphMany? I am never sure about morphs πŸ™ˆ
Antonio
AntonioOPβ€’7mo ago
Hey @Dennis Koch, thank you for the comment. Yes, what I am looking for is MorphMany select actually. Since MorphTo is singular Maybe it looks like a feature request πŸ˜†
Want results from more Discord servers?
Add your server