Support the ongoing development of Laravel.io →
Database Eloquent
Last updated 1 year ago.
0

First the good news: we don't hate you! :D

I've had this error a few times and it's annoying. It's either that the FK is not set in the query, or the FK does not exist. Take a look at your code to make sure that everything is set OK.

Mei

Last updated 1 year ago.
0

meigwilym said:

First the good news: we don't hate you! :D

I've had this error a few times and it's annoying. It's either that the FK is not set in the query, or the FK does not exist. Take a look at your code to make sure that everything is set OK.

Mei

When I try with phpmyadmin, I use che dropdown menu to select the FK... So the FK exists! Migration code is all right? (Ps: if I remove foreign key , the query run without problems!)

Last updated 1 year ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

AsoStrife asostrife Joined 9 Mar 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.