src/Tag.php
public function scopeWithGroup(Builder $query, string $group = null): Builder
    {
        return $group ? $query->where('group', $group) : $query;
    }
public function scopeWithGroup(Builder $query, string $group = null): Builder
    {
        return $group ? $query->where('group', $group) : $query;
    }
public function scopeWithGroup ( Builder $ query , string $ group = null ) : Builder { return $ group ? $ query -> where ( 'group' , $ group ) : $ query ; }
Scope tags by given group.

@param \Illuminate\Database\Eloquent\Builder $query
@param string|null                           $group

@return \Illuminate\Database\Eloquent\Builder
Scope tags by given group .