src/Model/Tag.php
public function removeGroup(string $groupName)
    {
        $tagGroup = TagGroup::query()->where('slug', $this->taggingUtility->slug($groupName))->first();

        if ($tagGroup) {
            $this->group()->dissociate($tagGroup);
            $this->save();

            return $this;
        } else {
            throw new \RuntimeException('No Tag Group found: '. $groupName);
        }
    }
public function removeGroup(string $groupName)
    {
        $tagGroup = TagGroup::query()->where('slug', $this->taggingUtility->slug($groupName))->first();

        if ($tagGroup) {
            $this->group()->dissociate($tagGroup);
            $this->save();

            return $this;
        } else {
            throw new \RuntimeException('No Tag Group found: '. $groupName);
        }
    }
public function removeGroup ( string $ groupName ) { $ tagGroup = TagGroup :: query ( ) -> where ( 'slug' , $ this -> taggingUtility -> slug ( $ groupName ) ) -> first ( ) ; if ( $ tagGroup ) { $ this -> group ( ) -> dissociate ( $ tagGroup ) ; $ this -> save ( ) ; return $ this ; } else { throw new \ RuntimeException ( 'No Tag Group found: ' . $ groupName ) ; } }
Tag group remove
@param string $groupName
@return Tag
Tag group remove