File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ public static function bootHasTags()
57
57
public function tags (): MorphToMany
58
58
{
59
59
return $ this
60
- ->morphToMany (self ::getTagClassName (), $ this ->getTaggableMorphName ())
60
+ ->morphToMany (self ::getTagClassName (), $ this ->getTaggableMorphName (), $ this -> getTaggableTableName () )
61
61
->using ($ this ->getPivotModelClassName ())
62
62
->ordered ();
63
63
}
@@ -67,7 +67,7 @@ public function tagsTranslated(string | null $locale = null): MorphToMany
67
67
$ locale = ! is_null ($ locale ) ? $ locale : self ::getTagClassName ()::getLocale ();
68
68
69
69
return $ this
70
- ->morphToMany (self ::getTagClassName (), $ this ->getTaggableMorphName ())
70
+ ->morphToMany (self ::getTagClassName (), $ this ->getTaggableMorphName (), $ this -> getTaggableTableName () )
71
71
->using ($ this ->getPivotModelClassName ())
72
72
->select ('* ' )
73
73
->selectRaw ("JSON_UNQUOTE(JSON_EXTRACT(name, '$. \"{$ locale }\"')) as name_translated " )
You can’t perform that action at this time.
0 commit comments