Skip to content

Commit e801705

Browse files
authored
Fix dynamic taggable table name (#520)
1 parent 874d776 commit e801705

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/HasTags.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ protected function syncTagIds($ids, string | null $type = null, $detaching = tru
269269
->where($this->getTaggableMorphName() . '_type', $this->getMorphClass())
270270
->join(
271271
$tagModel->getTable(),
272-
'taggables.tag_id',
272+
$this->getTaggableTableName() . '.tag_id',
273273
'=',
274274
$tagModel->getTable() . '.' . $tagModel->getKeyName()
275275
)

0 commit comments

Comments
 (0)