src/Observers/UriObserver.php
public function creating(Page $model)
    {
        $slugs = $model->getTranslations('slug');
        foreach ($slugs as $locale => $slug) {
            $uri = $this->incrementWhileExists($model, $slug, $locale);
            $model->setTranslation('uri', $locale, $uri);
        }
    }
public function creating(Page $model)
    {
        $slugs = $model->getTranslations('slug');
        foreach ($slugs as $locale => $slug) {
            $uri = $this->incrementWhileExists($model, $slug, $locale);
            $model->setTranslation('uri', $locale, $uri);
        }
    }
public function creating ( Page $ model ) { $ slugs = $ model -> getTranslations ( 'slug' ) ; foreach ( $ slugs as $ locale => $ slug ) { $ uri = $ this -> incrementWhileExists ( $ model , $ slug , $ locale ) ; $ model -> setTranslation ( 'uri' , $ locale , $ uri ) ; } }
On create, update uri.

@param Page $model

@return null
On create update uri .