What's the deal with Deno? We talk with a major contributor to find out. Listen now.

New answers tagged

1

I tried Fred Carsen's approach, but it didn't quite output what I expected. Here's my approach: // get categories $level1Categories = []; $level2Categories = []; $level3Categories = []; foreach ($product->productFamily->level(1)->all() as $category) { $level1Categories[] = $this->traverseCategory($category); } foreach ($product->...


Top 50 recent answers are included