Multi Select - dynamic values do not show #2613
Closed
Oksana-MetushiHideo
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, i'm trying to use multi select and i want to pass the values from another module, i have a post module and category module, each post can have more than one category, this is my code.
When i do a dd of app()->make(CategoryRepository::class)->listAll() the right values come but when i do dd of 'categories', it come just this 'categories'
'categories' => app()->make(CategoryRepository::class)->listAll(),
$form->add(
MultiSelect::make()
->name('categories')
->label('Categories')
->unpack(false)
->options(Options::make('categories'))
);
Beta Was this translation helpful? Give feedback.
All reactions