classes/Layout/Nav.php
protected function makePage($key, $val)
    {
        // Check if it's a divider
        if ($val === '-') {
            return (object) ['divider' => true];
        }

        // Create a new page
        $page = ['url' => $val, 'divider' => false];
        $page = array_merge($page, $this->makeIcon($key));

        // Check if this item is the currently selected one
        $page['active'] = false;
        if (strpos(URL::current(), parse_url($page['url'], PHP_URL_PATH))) {
            $page['active'] = true;
        }

        // Return the new page
        return (object) $page;
    }
protected function makePage($key, $val)
    {
        // Check if it's a divider
        if ($val === '-') {
            return (object) ['divider' => true];
        }

        // Create a new page
        $page = ['url' => $val, 'divider' => false];
        $page = array_merge($page, $this->makeIcon($key));

        // Check if this item is the currently selected one
        $page['active'] = false;
        if (strpos(URL::current(), parse_url($page['url'], PHP_URL_PATH))) {
            $page['active'] = true;
        }

        // Return the new page
        return (object) $page;
    }
protected function makePage ( $ key , $ val ) { // Check if it's a divider if ( $ val === '-' ) { return ( object ) [ 'divider' => true ] ; } // Create a new page $ page = [ 'url' => $ val , 'divider' => false ] ; $ page = array_merge ( $ page , $ this -> makeIcon ( $ key ) ) ; // Check if this item is the currently selected one $ page [ 'active' ] = false ; if ( strpos ( URL :: current ( ) , parse_url ( $ page [ 'url' ] , PHP_URL_PATH ) ) ) { $ page [ 'active' ] = true ; } // Return the new page return ( object ) $ page ; }
Make a page object

@return object
Make a page object