Skip to content

Commit f70e6f8

Browse files
committed
Allow for eager loading usage on tagNames()
1 parent 8fa8ed4 commit f70e6f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TaggableTrait.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public function tagNames()
8888
public function tagSlugs()
8989
{
9090
$tagSlugs = array();
91-
$tagged = $this->tagged()->get(array('tag_slug'));
91+
$tagged = $this->tagged;
9292

9393
foreach($tagged as $tagged) {
9494
$tagSlugs[] = $tagged->tag_slug;

0 commit comments

Comments
 (0)