public static function cmsMenus()
    {
        $result = [];
        foreach(Menu::all() as $menu){
            $result[$menu->slug] = [
              'menuID' => $menu->menuID,
              'title' => $menu->title,
              'menuLinks' => self::cmsMenuLinks(Menu::getMenuLinks($menu->slug)),
            ];
        }
        return $result;
    }
public static function cmsMenus()
    {
        $result = [];
        foreach(Menu::all() as $menu){
            $result[$menu->slug] = [
              'menuID' => $menu->menuID,
              'title' => $menu->title,
              'menuLinks' => self::cmsMenuLinks(Menu::getMenuLinks($menu->slug)),
            ];
        }
        return $result;
    }
public static function cmsMenus ( ) { $ result = [ ] ; foreach ( Menu :: all ( ) as $ menu ) { $ result [ $ menu -> slug ] = [ 'menuID' => $ menu -> menuID , 'title' => $ menu -> title , 'menuLinks' => self :: cmsMenuLinks ( Menu :: getMenuLinks ( $ menu -> slug ) ) , ] ; } return $ result ; }
Use to get all menus and the menu links of each of them

@return array
@throws \Exception
Use to get all menus and the menu links of each of them