Conditional Select Field

Hi, a couple Select fields should be populated and/or disabled based on other fields in my application. E.g. I only want to display rooms, which does not have been associated to a season yet.
Select::make('seasons')
...
->live(),

Select::make('rooms')
...
->options(fn (Contract $record, Get $get) => $record->rooms()->whereDoesntHave(...))
Select::make('seasons')
...
->live(),

Select::make('rooms')
...
->options(fn (Contract $record, Get $get) => $record->rooms()->whereDoesntHave(...))
The select field is not repopulated, any ideas?
1 Reply
alexanderkroneis
alexanderkroneisOP14mo ago
same for
->disabled(fn (Get $get) => !$get('seasons'))
->disabled(fn (Get $get) => !$get('seasons'))
Want results from more Discord servers?
Add your server