public function moduleLinks($ignoredModules = [], $linkClass = 'nav-link', $listClass = 'nav-item')
    {
        $links = '';

        $modules = config('cms.modules', []);

        foreach ($ignoredModules as $ignoredModule) {
            if (in_array(strtolower($ignoredModule), array_keys($modules))) {
                unset($modules[strtolower($ignoredModule)]);
            }
        }

        foreach ($modules as $module => $config) {
            $link = $module;

            if (isset($config['url'])) {
                $link = $config['url'];
            }

            $displayLink = true;

            if (isset($config['is_ignored_in_menu']) && $config['is_ignored_in_menu']) {
                $displayLink = false;
            }

            if ($displayLink) {
                $links .= '<li class="'.$listClass.'"><a class="'.$linkClass.'" href="'.url($link).'">'.ucfirst($link).'</a></li>';
            }
        }

        return $links;
    }
public function moduleLinks($ignoredModules = [], $linkClass = 'nav-link', $listClass = 'nav-item')
    {
        $links = '';

        $modules = config('cms.modules', []);

        foreach ($ignoredModules as $ignoredModule) {
            if (in_array(strtolower($ignoredModule), array_keys($modules))) {
                unset($modules[strtolower($ignoredModule)]);
            }
        }

        foreach ($modules as $module => $config) {
            $link = $module;

            if (isset($config['url'])) {
                $link = $config['url'];
            }

            $displayLink = true;

            if (isset($config['is_ignored_in_menu']) && $config['is_ignored_in_menu']) {
                $displayLink = false;
            }

            if ($displayLink) {
                $links .= '<li class="'.$listClass.'"><a class="'.$linkClass.'" href="'.url($link).'">'.ucfirst($link).'</a></li>';
            }
        }

        return $links;
    }
public function moduleLinks ( $ ignoredModules = [ ] , $ linkClass = 'nav-link' , $ listClass = 'nav-item' ) { $ links = '' ; $ modules = config ( 'cms.modules' , [ ] ) ; foreach ( $ ignoredModules as $ ignoredModule ) { if ( in_array ( strtolower ( $ ignoredModule ) , array_keys ( $ modules ) ) ) { unset ( $ modules [ strtolower ( $ ignoredModule ) ] ) ; } } foreach ( $ modules as $ module => $ config ) { $ link = $ module ; if ( isset ( $ config [ 'url' ] ) ) { $ link = $ config [ 'url' ] ; } $ displayLink = true ; if ( isset ( $ config [ 'is_ignored_in_menu' ] ) && $ config [ 'is_ignored_in_menu' ] ) { $ displayLink = false ; } if ( $ displayLink ) { $ links .= '<li class="' . $ listClass . '"><a class="' . $ linkClass . '" href="' . url ( $ link ) . '">' . ucfirst ( $ link ) . '</a></li>' ; } } return $ links ; }
Module Links.

@param array $ignoredModules   A list of ignored links

@return string
Module Links .