File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -187,7 +187,7 @@ public function scopeWithAllTags($query, $tagNames)
187
187
foreach ($ tagNames as $ tagSlug ) {
188
188
$ tags = Tagged::where ('tag_slug ' , call_user_func ($ normalizer , $ tagSlug ))
189
189
->where ('taggable_type ' , $ className )
190
- ->lists ('taggable_id ' );
190
+ ->pluck ('taggable_id ' );
191
191
192
192
$ primaryKey = $ this ->getKeyName ();
193
193
$ query ->whereIn ($ this ->getTable ().'. ' .$ primaryKey , $ tags );
@@ -218,7 +218,7 @@ public function scopeWithAnyTag($query, $tagNames)
218
218
219
219
$ tags = Tagged::whereIn ('tag_slug ' , $ tagNames )
220
220
->where ('taggable_type ' , $ className )
221
- ->lists ('taggable_id ' );
221
+ ->pluck ('taggable_id ' );
222
222
223
223
$ primaryKey = $ this ->getKeyName ();
224
224
return $ query ->whereIn ($ this ->getTable ().'. ' .$ primaryKey , $ tags );
You can’t perform that action at this time.
0 commit comments