Forms\Components\Section::make('Config')
->schema([
Forms\Components\Fieldset::make('config')
->relationship('config')
->schema([
Forms\Components\Select::make('driver')
->options(DriverOptions::options()->toArray())
->columnSpanFull()
->reactive(),
Forms\Components\Repeater::make('credentials')
->schema([
Forms\Components\TextInput::make('name'),
Forms\Components\TextInput::make('value'),
])
->hidden(function (\Closure $get) {
return $get('driver') !== 'option1';
}),
Forms\Components\Repeater::make('credentials')
->schema([
Forms\Components\TextInput::make('extra_login'),
])
->hidden(function (\Closure $get) {
return $get('driver') !== 'option2';
}),
])
])
Forms\Components\Section::make('Config')
->schema([
Forms\Components\Fieldset::make('config')
->relationship('config')
->schema([
Forms\Components\Select::make('driver')
->options(DriverOptions::options()->toArray())
->columnSpanFull()
->reactive(),
Forms\Components\Repeater::make('credentials')
->schema([
Forms\Components\TextInput::make('name'),
Forms\Components\TextInput::make('value'),
])
->hidden(function (\Closure $get) {
return $get('driver') !== 'option1';
}),
Forms\Components\Repeater::make('credentials')
->schema([
Forms\Components\TextInput::make('extra_login'),
])
->hidden(function (\Closure $get) {
return $get('driver') !== 'option2';
}),
])
])