src/Events/ResetChildren.php
public function resetChildrenUri(Page $page)
    {
        foreach ($page->subpages as $subpage) {
            $uris = $subpage->getTranslations('uri');
            foreach ($uris as $locale => $uri) {
                $subpage->forgetTranslation('uri', $locale);
            }
            $subpage->save();
            $this->resetChildrenUri($subpage);
        }
    }
public function resetChildrenUri(Page $page)
    {
        foreach ($page->subpages as $subpage) {
            $uris = $subpage->getTranslations('uri');
            foreach ($uris as $locale => $uri) {
                $subpage->forgetTranslation('uri', $locale);
            }
            $subpage->save();
            $this->resetChildrenUri($subpage);
        }
    }
public function resetChildrenUri ( Page $ page ) { foreach ( $ page -> subpages as $ subpage ) { $ uris = $ subpage -> getTranslations ( 'uri' ) ; foreach ( $ uris as $ locale => $ uri ) { $ subpage -> forgetTranslation ( 'uri' , $ locale ) ; } $ subpage -> save ( ) ; $ this -> resetChildrenUri ( $ subpage ) ; } }
Recursive method for emptying subpages URI
UriObserver will rebuild URIs.

@param Page $page

@return null
Recursive method for emptying subpages URI UriObserver will rebuild URIs .