src/tools/MbPage.php
public function addSubPage($name, $slug = null)
    {
        $subpage = self::create($name)->setSlug(is_null($slug) ? $name : $slug);

        $this->setSubPage($subpage);

        return $subpage;
    }
public function addSubPage($name, $slug = null)
    {
        $subpage = self::create($name)->setSlug(is_null($slug) ? $name : $slug);

        $this->setSubPage($subpage);

        return $subpage;
    }
public function addSubPage ( $ name , $ slug = null ) { $ subpage = self :: create ( $ name ) -> setSlug ( is_null ( $ slug ) ? $ name : $ slug ) ; $ this -> setSubPage ( $ subpage ) ; return $ subpage ; }
Add sub page

@param string $name
@param string $slug

@return MbPage subpage
Add sub page