public function setSlugAttribute($value): void
    {
        $this->attributes['slug'] = str_slug($value, $this->getSlugOptions()->slugSeparator, $this->getSlugOptions()->slugLanguage);
    }
public function setSlugAttribute($value): void
    {
        $this->attributes['slug'] = str_slug($value, $this->getSlugOptions()->slugSeparator, $this->getSlugOptions()->slugLanguage);
    }
public function setSlugAttribute ( $ value ) : void { $ this -> attributes [ 'slug' ] = str_slug ( $ value , $ this -> getSlugOptions ( ) -> slugSeparator , $ this -> getSlugOptions ( ) -> slugLanguage ) ; }
Enforce clean slugs.

@param string $value

@return void
Enforce clean slugs .