src/Repositories/EloquentMenu.php
public function setHref($menulink)
    {
        if ($menulink->url) {
            return $menulink->url;
        }
        if ($menulink->page) {
            return $menulink->page->uri();
        }

        return '/';
    }
public function setHref($menulink)
    {
        if ($menulink->url) {
            return $menulink->url;
        }
        if ($menulink->page) {
            return $menulink->page->uri();
        }

        return '/';
    }
public function setHref ( $ menulink ) { if ( $ menulink -> url ) { return $ menulink -> url ; } if ( $ menulink -> page ) { return $ menulink -> page -> uri ( ) ; } return '/' ; }
1. If menulink has url field, take it.
2. If menulink has a page, take the uri of the page in the current locale.

@param $menulink

@return string uri
1 . If menulink has url field take it . 2 . If menulink has a page take the uri of the page in the current locale .