src/Model/TagGroup.php
public function setNameAttribute($value)
    {
        $this->attributes['name'] = $value;
        $this->attributes['slug'] = Str::slug($value);
    }
public function setNameAttribute($value)
    {
        $this->attributes['name'] = $value;
        $this->attributes['slug'] = Str::slug($value);
    }
public function setNameAttribute ( $ value ) { $ this -> attributes [ 'name' ] = $ value ; $ this -> attributes [ 'slug' ] = Str :: slug ( $ value ) ; }
sets the slug when setting the group name

@return void
sets the slug when setting the group name