->fillForm(function (array $arguments) {
$client = $this->client();
$getIndex = $client->getIndex($arguments['index']);
$settings = $getIndex->getSettings();
$filterableAttributes[$arguments['index'].'-filterableAttributes'] = $settings['filterableAttributes'];
return $filterableAttributes;
})
->form(function (array $arguments) {
return [
Repeater::make('filterableAttributes')
->simple(TextInput::make('filterableAttributes'))
->grid(2)
->statePath($arguments['index'].'-filterableAttributes')
->key($arguments['index'].'-filterableAttsssributes')
];
})
->fillForm(function (array $arguments) {
$client = $this->client();
$getIndex = $client->getIndex($arguments['index']);
$settings = $getIndex->getSettings();
$filterableAttributes[$arguments['index'].'-filterableAttributes'] = $settings['filterableAttributes'];
return $filterableAttributes;
})
->form(function (array $arguments) {
return [
Repeater::make('filterableAttributes')
->simple(TextInput::make('filterableAttributes'))
->grid(2)
->statePath($arguments['index'].'-filterableAttributes')
->key($arguments['index'].'-filterableAttsssributes')
];
})