Multiple Select that creates on submit

I have a Select in a form that allows users to attach Skill resources to themselves.
Select::make('skills')
->relationship(name: 'skills', titleAttribute: 'title')
->multiple()
Select::make('skills')
->relationship(name: 'skills', titleAttribute: 'title')
->multiple()
I added a create form for not existing skills:
->createOptionForm([
TextInput::make('title')
->required(),
])
->createOptionForm([
TextInput::make('title')
->required(),
])
But because my Skill Model only has one field, I was hoping to use the search value of the select When a user searches the select for a skill, but it isn't found because it doesnt exist yet. Hitting Enter should create the skill using the search value and attach it. has anyone been able to do this with Filament?
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server