Prevent nestable collection removing menu items

Because the `root` menu item is not active, Nestable Collection was removing all the menu items. Why this only showed up on the upgrade to Laravel 5.7, I have no idea…
parent 5254a5c0
......@@ -113,7 +113,7 @@ class EloquentMenuItemRepository extends EloquentBaseRepository implements MenuI
{
$items = $this->rootsForMenu($menuId);
return $items->nest();
return $items->noCleaning()->nest();
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment