protected function createSlug()
    {
        $slug = $this->generateNonUniqueSlug();

        if ($this->slugOptions->generateUniqueSlug) {
            $slug = $this->makeSlugUnique($slug);
        }

        $this->attributes[$this->slugOptions->slugField] = $slug;
    }
protected function createSlug()
    {
        $slug = $this->generateNonUniqueSlug();

        if ($this->slugOptions->generateUniqueSlug) {
            $slug = $this->makeSlugUnique($slug);
        }

        $this->attributes[$this->slugOptions->slugField] = $slug;
    }
protected function createSlug ( ) { $ slug = $ this -> generateNonUniqueSlug ( ) ; if ( $ this -> slugOptions -> generateUniqueSlug ) { $ slug = $ this -> makeSlugUnique ( $ slug ) ; } $ this -> attributes [ $ this -> slugOptions -> slugField ] = $ slug ; }
Add the slug to the model.
Add the slug to the model .