F
Filamentβ€’14mo 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β€’14mo 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β€’14mo 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β€’14mo ago
Sorry, I'm on mobile πŸ™ˆ
cheesegrits
cheesegritsβ€’14mo ago
I feel your pain. I do a lot of support on mobile, and entering code is a nightmare.
LeandroFerreira
LeandroFerreiraβ€’14mo ago
yes πŸ˜΅β€πŸ’«
Want results from more Discord servers?
Add your server