Closed fabianwurk closed 3 years ago
maybe try@foreach ($item->children as $secondChild)
(instead of another $child
)
Thanks, yeah, had tried similar hierarchy naming approach earlier but seems to be same result using your suggestion:
@foreach ($item->children as $secondChild)
<li>
<a class="text-white">
{{ $secondChild->label }}
</a>
</li>
@endforeach
oh i see the problem. you need to loop @foreach ($child->children as $secondChild)
Brandon that was exactly it. Thank you so much 👍
Hi Brandon,
I'm trying to add a second level dropdown using
but its just repeating label from first level dropdown:
Any idea what I'm doing wrong here?
Thanks.