Show a list of options based on another field

Hello devs, how can I show a list of options with Select based on another select element?
Select::make('choice')
        ->options(                  
          [
         'option-1' => 'Option 1',
          'option-2' => 'Option 2',
        ]);

And I have another select field that should show different options that should still be saved in the choice field.
Was this page helpful?