I tried to do it like this but it didn't work
<li class="first-level-item">
<a class="first-level-item-text u-blk "
href=""
title=""
data-category-name="">
</a>
@for ($i = 0;$i < $category->recursiveChildrens->count(); $category->recursiveChildrens->count()++)
@if ($category->recursiveChildrens->count()[$i])
<ul class="menu-second-level">
@each('partials.header.menu.sub-category', $category->recursiveChildrens, 'subCategory')
</ul>
@endif
@endfor
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire