We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 214f604 + 1691c39 commit 239cb2fCopy full SHA for 239cb2f
src/Taggable.php
@@ -187,7 +187,7 @@ public function scopeWithAllTags($query, $tagNames)
187
foreach($tagNames as $tagSlug) {
188
$tags = Tagged::where('tag_slug', call_user_func($normalizer, $tagSlug))
189
->where('taggable_type', $className)
190
- ->lists('taggable_id');
+ ->pluck('taggable_id');
191
192
$primaryKey = $this->getKeyName();
193
$query->whereIn($this->getTable().'.'.$primaryKey, $tags);
@@ -218,7 +218,7 @@ public function scopeWithAnyTag($query, $tagNames)
218
219
$tags = Tagged::whereIn('tag_slug', $tagNames)
220
221
222
223
224
return $query->whereIn($this->getTable().'.'.$primaryKey, $tags);
0 commit comments