F
Filamentβ€’16mo ago
Hai NGUYEN

I have tried it and failed

I have tried it and failed, how can I catch the select event of the field_id field for the profession_id field?
No description
5 Replies
LeandroFerreira
LeandroFerreiraβ€’16mo ago
->options(fn(Get $get) => Profession::whereFieldId($get('field_id')->pluck('name', 'id')))
->options(fn(Get $get) => Profession::whereFieldId($get('field_id')->pluck('name', 'id')))
cheesegrits
cheesegritsβ€’16mo ago
Shouldn't that be ...
->options(fn(Get $get) => Profession::whereFieldId($get('field_id'))->pluck('name', 'id'))
->options(fn(Get $get) => Profession::whereFieldId($get('field_id'))->pluck('name', 'id'))
LeandroFerreira
LeandroFerreiraβ€’16mo ago
Sorry, I'm on mobile πŸ™ˆ
cheesegrits
cheesegritsβ€’16mo ago
I feel your pain. I do a lot of support on mobile, and entering code is a nightmare.
LeandroFerreira
LeandroFerreiraβ€’16mo ago
yes πŸ˜΅β€πŸ’«

Did you find this page helpful?