public function languageLinks($linkClass = 'nav-link', $itemClass = 'nav-item')
    {
        if (count(config('cms.languages')) > 1) {
            $languageLinks = [];
            foreach (config('cms.languages') as $key => $value) {
                $url = url(config('cms.backend-route-prefix', 'cms').'/language/set/'.$key);
                $languageLinks[] = '<li class="'.$itemClass.'"><a class="language-link '.$linkClass.'" href="'.$url.'">'.ucfirst($value).'</a></li>';
            }

            $languageLinkString = implode($languageLinks);

            return $languageLinkString;
        }

        return '';
    }
public function languageLinks($linkClass = 'nav-link', $itemClass = 'nav-item')
    {
        if (count(config('cms.languages')) > 1) {
            $languageLinks = [];
            foreach (config('cms.languages') as $key => $value) {
                $url = url(config('cms.backend-route-prefix', 'cms').'/language/set/'.$key);
                $languageLinks[] = '<li class="'.$itemClass.'"><a class="language-link '.$linkClass.'" href="'.$url.'">'.ucfirst($value).'</a></li>';
            }

            $languageLinkString = implode($languageLinks);

            return $languageLinkString;
        }

        return '';
    }
public function languageLinks ( $ linkClass = 'nav-link' , $ itemClass = 'nav-item' ) { if ( count ( config ( 'cms.languages' ) ) > 1 ) { $ languageLinks = [ ] ; foreach ( config ( 'cms.languages' ) as $ key => $ value ) { $ url = url ( config ( 'cms.backend-route-prefix' , 'cms' ) . '/language/set/' . $ key ) ; $ languageLinks [ ] = '<li class="' . $ itemClass . '"><a class="language-link ' . $ linkClass . '" href="' . $ url . '">' . ucfirst ( $ value ) . '</a></li>' ; } $ languageLinkString = implode ( $ languageLinks ) ; return $ languageLinkString ; } return '' ; }
Links for each supported language

@param  string $linkClass
@param  string $itemClass

@return string
Links for each supported language