src/Model/Tag.php
public function scopeInGroup(Builder $query, $groupName)
    {
        $groupSlug = $this->taggingUtility->slug($groupName);

        return $query->whereHas('group', function (Builder $query) use ($groupSlug) {
            $query->where('slug', $groupSlug);
        });
    }
public function scopeInGroup(Builder $query, $groupName)
    {
        $groupSlug = $this->taggingUtility->slug($groupName);

        return $query->whereHas('group', function (Builder $query) use ($groupSlug) {
            $query->where('slug', $groupSlug);
        });
    }
public function scopeInGroup ( Builder $ query , $ groupName ) { $ groupSlug = $ this -> taggingUtility -> slug ( $ groupName ) ; return $ query -> whereHas ( 'group' , function ( Builder $ query ) use ( $ groupSlug ) { $ query -> where ( 'slug' , $ groupSlug ) ; } ) ; }
Get suggested tags
@param Builder $query
@param $groupName
@return
Get suggested tags