public static function getMenuLinks($menuSlug)
    {
        // Set active MenuLinks
        MenuLink::setActiveIDs(true);

        $menuData = self::findBySlug($menuSlug);
        $menuLinks = MenuLink::where('menuID', $menuData->menuID)->orderBy('order')->get();

        if($menuLinks) {
            return MenuLink::children($menuLinks);
        }
    }
public static function getMenuLinks($menuSlug)
    {
        // Set active MenuLinks
        MenuLink::setActiveIDs(true);

        $menuData = self::findBySlug($menuSlug);
        $menuLinks = MenuLink::where('menuID', $menuData->menuID)->orderBy('order')->get();

        if($menuLinks) {
            return MenuLink::children($menuLinks);
        }
    }
public static function getMenuLinks ( $ menuSlug ) { // Set active MenuLinks MenuLink :: setActiveIDs ( true ) ; $ menuData = self :: findBySlug ( $ menuSlug ) ; $ menuLinks = MenuLink :: where ( 'menuID' , $ menuData -> menuID ) -> orderBy ( 'order' ) -> get ( ) ; if ( $ menuLinks ) { return MenuLink :: children ( $ menuLinks ) ; } }
Get menu links of a particular menu.

@param  string $menuSlug
@return array|\Illuminate\Support\Collection|mixed
@throws \Exception
Get menu links of a particular menu .