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
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/3bKnWmE
via IFTTT
Aucun commentaire:
Enregistrer un commentaire