cviebrock/eloquent-taggable

Model with popularTags not apply global scope

Kotzilla opened this issue · 3 comments

I use a model with taggable.
Content::popularTags() but Content have a global scope with where('status', 'published');

it's return without filter condition
is it the way to filter the popularTags ?
i'have try with Content::where('status', 'published')->popularTags(20);

Thank you.

Can't you just disable global scopes the normal way?

Content::withoutGlobalScopes()->popularTags(20);

@cviebrock

yes i try but it's return

call to undefined method Illuminate\Database\Eloquent\Builder

Closing old issue