This commit is contained in:
James Brooks
2019-07-12 10:41:51 +01:00
parent 6810af48f7
commit b0b0883ae1

View File

@@ -85,7 +85,7 @@ trait HasTags
$tags->each(function ($tag) use ($query) {
$query->whereHas('tags', function (Builder $query) use ($tag) {
return $query->where('id', $tag ? $tag->id : 0);
return $query->where('tags.id', $tag ? $tag->id : 0);
});
});