Skip to content

Commit

Permalink
Fix dynamic taggable table name (#520)
Browse files Browse the repository at this point in the history
  • Loading branch information
xalunda authored Dec 9, 2024
1 parent 874d776 commit e801705
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/HasTags.php
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ protected function syncTagIds($ids, string | null $type = null, $detaching = tru
->where($this->getTaggableMorphName() . '_type', $this->getMorphClass())
->join(
$tagModel->getTable(),
'taggables.tag_id',
$this->getTaggableTableName() . '.tag_id',
'=',
$tagModel->getTable() . '.' . $tagModel->getKeyName()
)
Expand Down

0 comments on commit e801705

Please sign in to comment.