public static function form(Form $form): Form
{
return $form
->schema([
Forms\Components\Select::make('config_type')
->required()
->default(ConfigType::MAPPER)
->live()
->enum(ConfigType::class)
->options(ConfigType::class),
Forms\Components\Fieldset::make()
->statePath('config')
->schema(fn (Forms\Get $get) =>
dd($get('config_type')) // The problem is here
]);
}
public static function form(Form $form): Form
{
return $form
->schema([
Forms\Components\Select::make('config_type')
->required()
->default(ConfigType::MAPPER)
->live()
->enum(ConfigType::class)
->options(ConfigType::class),
Forms\Components\Fieldset::make()
->statePath('config')
->schema(fn (Forms\Get $get) =>
dd($get('config_type')) // The problem is here
]);
}