📜  laravel 中的多级子类别 - 任何代码示例

📅  最后修改于: 2022-03-11 14:57:06.709000             🧑  作者: Mango

代码示例1

  • {{ $category->name}} @if (count($category->children) > 0)
      @foreach ($category->children as $sub) @include('subcategories', ['category' => $sub]) @endforeach
    @endif