public function scopeIsTagged(Builder $query): Builder
    {
        $alias = $this->taggableCreateNewAlias(__FUNCTION__);
        return $this->prepareTableJoin($query, 'inner', $alias);
    }
public function scopeIsTagged(Builder $query): Builder
    {
        $alias = $this->taggableCreateNewAlias(__FUNCTION__);
        return $this->prepareTableJoin($query, 'inner', $alias);
    }
public function scopeIsTagged ( Builder $ query ) : Builder { $ alias = $ this -> taggableCreateNewAlias ( __FUNCTION__ ) ; return $ this -> prepareTableJoin ( $ query , 'inner' , $ alias ) ; }
Query scope for models that have any tag.

@param Builder $query

@return Builder
Query scope for models that have any tag .