Skip to content

Commit fe4b3c8

Browse files
committed
Use lazy loading on tagNames
1 parent f70e6f8 commit fe4b3c8

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
@@ -71,7 +71,7 @@ public function tag($tagNames)
7171
public function tagNames()
7272
{
7373
$tagNames = array();
74-
$tagged = $this->tagged()->get(array('tag_name'));
74+
$tagged = $this->tagged;
7575

7676
foreach($tagged as $tagged) {
7777
$tagNames[] = $tagged->tag_name;

0 commit comments

Comments
 (0)