How to provide default options in a multi select? #8289
joshembling
started this conversation in
General
Replies: 2 comments 2 replies
-
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Running into this right now and it seems to not work. @danharrin, I've tried Select::make('technologies')
->multiple()
->options([
'tailwind' => 'Tailwind CSS',
'alpine' => 'Alpine.js',
'laravel' => 'Laravel',
'livewire' => 'Laravel Livewire',
])
->default(['laravel', 'livewire']), The select is just empty. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Just looking at the example provided in the docs
If I chain something like this:
->default('tailwind')
Or this
->default(['tailwind'])
Neither seem to have any effect and no default options are selected.
Anyone have any ideas?
Beta Was this translation helpful? Give feedback.
All reactions