improve searchbox extra

This commit is contained in:
xiaomlove
2022-11-05 01:08:04 +08:00
parent 7b65d84752
commit 8dd2880e76
16 changed files with 96 additions and 71 deletions

View File

@@ -40,7 +40,7 @@ class CategoryResource extends Resource
return $form
->schema([
Forms\Components\Select::make('mode')
->options(SearchBox::query()->pluck('name', 'id')->toArray())
->options(SearchBox::listModeOptions())
->label(__('label.search_box.label'))
->required()
,