Skip to content

Pivot table without id column #777

Answered by abordage
quantumwebco asked this question in Q&A
Discussion options

You must be logged in to vote

Update migration to nullableMorphs('auditable') however this results in null values being recorded for old_values.

Instead, you can add auto-incrementing primary key and public $incrementing = true; on pivot

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@Virtute90
Comment options

Answer selected by erikn69
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants
Converted from issue

This discussion was converted from issue #549 on March 13, 2023 20:36.