classes/Middleware/Guest.php
public function getNavUrls($nav = null)
    {
        // If no nav passed, as it would be for a sub navs, get the configed nav
        if (empty($nav)) {
            $nav = config('decoy.site.nav');
        }

        // Allow for the nav to be acallable
        if (is_callable($nav)) {
            $nav = call_user_func($nav);
        }

        // Loop through the nav
        $flat = [];
        foreach ($nav as $val) {
            if (is_array($val)) {
                $flat = array_merge($flat, $this->getNavUrls($val));
            } else {
                $flat[] = $val;
            }
        }

        return $flat;
    }
public function getNavUrls($nav = null)
    {
        // If no nav passed, as it would be for a sub navs, get the configed nav
        if (empty($nav)) {
            $nav = config('decoy.site.nav');
        }

        // Allow for the nav to be acallable
        if (is_callable($nav)) {
            $nav = call_user_func($nav);
        }

        // Loop through the nav
        $flat = [];
        foreach ($nav as $val) {
            if (is_array($val)) {
                $flat = array_merge($flat, $this->getNavUrls($val));
            } else {
                $flat[] = $val;
            }
        }

        return $flat;
    }
public function getNavUrls ( $ nav = null ) { // If no nav passed, as it would be for a sub navs, get the configed nav if ( empty ( $ nav ) ) { $ nav = config ( 'decoy.site.nav' ) ; } // Allow for the nav to be acallable if ( is_callable ( $ nav ) ) { $ nav = call_user_func ( $ nav ) ; } // Loop through the nav $ flat = [ ] ; foreach ( $ nav as $ val ) { if ( is_array ( $ val ) ) { $ flat = array_merge ( $ flat , $ this -> getNavUrls ( $ val ) ) ; } else { $ flat [ ] = $ val ; } } return $ flat ; }
Return a flat list of all the URLs in the nav.  This doesn't include ones
automatically added by Decoy

@param  array $nav
@return array
Return a flat list of all the URLs in the nav . This doesn t include ones automatically added by Decoy