Custom Select
Hey, how can I create a select with a model but also with groups like below
My current code is
But with this solution the groups are not shown only the names in the list
10 Replies
But I want Food properties as group above the 3
Does the first part work? Do we support groups right now? π€
Yes
Good to know. Haven't used it myself yet π
Your name sounds german π€
What if you add an ID
$items->pluck('name', 'id')
? Does that help? Maybe it's only supported on ->options()
thoughThe category is still not displayed
I guess it's only supported for
options()
thenπ’