Answer the question
In order to leave comments, you need to log in
The problem is in eloquent c primary key, why is it not assigned?
Hello ! Please treat the issue appropriately. Perhaps there are "similar" questions on this topic.
But this problem caused me certain difficulties, I can’t solve it for 2 weeks, I didn’t find any resources, solving this problem I collected other errors and now I returned to the same one again.
It’s not clear to me (I googled) whether the primary key (user_id) is automatically set to id when creating a new record (of course, I wrote cascade in migrate ):
->onUpdate('cascade')
->onDelete('cascade');)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question