Repositories/Menu/MenuBuilder.php
public function buildMenus()
    {
        $menu = Menu::whereIsRoot()->get();
        foreach ($menu as $item) {
            LavaryMenu::make(Str::slug($item->name), function ($menu) use ($item) {
                $this->buildMenuItems($menu, $item);
            });
        }
    }
public function buildMenus()
    {
        $menu = Menu::whereIsRoot()->get();
        foreach ($menu as $item) {
            LavaryMenu::make(Str::slug($item->name), function ($menu) use ($item) {
                $this->buildMenuItems($menu, $item);
            });
        }
    }
public function buildMenus ( ) { $ menu = Menu :: whereIsRoot ( ) -> get ( ) ; foreach ( $ menu as $ item ) { LavaryMenu :: make ( Str :: slug ( $ item -> name ) , function ( $ menu ) use ( $ item ) { $ this -> buildMenuItems ( $ menu , $ item ) ; } ) ; } }
Build all Menus.
Build all Menus .