Model with popularTags not apply global scope
Kotzilla opened this issue · 3 comments
Kotzilla commented
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.
cviebrock commented
Can't you just disable global scopes the normal way?
Content::withoutGlobalScopes()->popularTags(20);
Kotzilla commented
cviebrock commented
Closing old issue