Skip to content

Commit 73e9465

Browse files
committed
Fix query
1 parent 0315c83 commit 73e9465

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/HasTags.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ public function tagsTranslated(string | null $locale = null): MorphToMany
7171
->morphToMany(self::getTagClassName(), $this->getTaggableMorphName(), $this->getTaggableTableName())
7272
->using($this->getPivotModelClassName())
7373
->select('*')
74-
->selectRaw($this->getQuery()->getGrammar()->wrap("name->>{$locale} as name_translated"))
75-
->selectRaw($this->getQuery()->getGrammar()->wrap("slug->>{$locale} as slug_translated"))
74+
->selectRaw($this->getQuery()->getGrammar()->wrap("name->{$locale} as name_translated"))
75+
->selectRaw($this->getQuery()->getGrammar()->wrap("slug->{$locale} as slug_translated"))
7676
->ordered();
7777
}
7878

0 commit comments

Comments
 (0)