Spatie Media Library always sets model_id as 0 #3080
Unanswered
AleksandarV993
asked this question in
Q&A
Replies: 1 comment
-
bigInteger has no autoincrement, if you change that you must set it manually
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey there, I'm using a custom column instead of a default
$table->id()
:$table->bigInteger("id")->unique();
And whatever I do, and no matter how many new entries I add, the
model_id
column in themedia
table is always set to 0. Is there a way for me to change this? I'd like the media table to reference my main table.Beta Was this translation helpful? Give feedback.
All reactions