$test=[1,2]
Forms\Components\Toggle::make('variations')
->label("choose other variations to include")
->inline(false)
->reactive()
->afterStateUpdated(function ($component) use (&$test) {
$test[3] = 3;
$component->getContainer()
->getComponent('variation_options')
->options($test)
->multiple()
->native(false);
}),
$test=[1,2]
Forms\Components\Toggle::make('variations')
->label("choose other variations to include")
->inline(false)
->reactive()
->afterStateUpdated(function ($component) use (&$test) {
$test[3] = 3;
$component->getContainer()
->getComponent('variation_options')
->options($test)
->multiple()
->native(false);
}),