public static function printMenu($menuSlug = "primary", $customView = '', $ulClass = '')
    {
        $menuLinks = self::getMenuLinks($menuSlug);
        if($menuLinks) {
            return new HtmlString(
                view()->make(
                    ($customView ? $customView : "vendor.menulinks.bootstrap-4"), [
                    'menuLinks' => $menuLinks,
                    'ulClass' => $ulClass,
                    'menuSlug'=> $menuSlug

                    ]
                )->render()
            );
        }
    }
public static function printMenu($menuSlug = "primary", $customView = '', $ulClass = '')
    {
        $menuLinks = self::getMenuLinks($menuSlug);
        if($menuLinks) {
            return new HtmlString(
                view()->make(
                    ($customView ? $customView : "vendor.menulinks.bootstrap-4"), [
                    'menuLinks' => $menuLinks,
                    'ulClass' => $ulClass,
                    'menuSlug'=> $menuSlug

                    ]
                )->render()
            );
        }
    }
public static function printMenu ( $ menuSlug = "primary" , $ customView = '' , $ ulClass = '' ) { $ menuLinks = self :: getMenuLinks ( $ menuSlug ) ; if ( $ menuLinks ) { return new HtmlString ( view ( ) -> make ( ( $ customView ? $ customView : "vendor.menulinks.bootstrap-4" ) , [ 'menuLinks' => $ menuLinks , 'ulClass' => $ ulClass , 'menuSlug' => $ menuSlug ] ) -> render ( ) ) ; } }
Prints MenuLinks of a menu.

@param  string $menuSlug   Slug of Menu
@param  string $customView Name of a custom blade.php file to render the template
@param  string $ulClass    Class of ul
@return HtmlString
@throws \Exception
Prints MenuLinks of a menu .