Support the ongoing development of Laravel.io →
posted 8 years ago
Eloquent
Last updated 2 years ago.
0

Hmmm, never had an issue with foreign keys. Did you use artisan make:migration to create your migrations?

0

yes sir! ;)

0

maybe i can make a demo setup to share. (can't share my current one)

0

Just give an example of your down method where you try to remove the table.

0

i think i found it, i first did the table delete and then the foreign key, in the other order it works again. stupid mistake of myself...

0

Sign in to participate in this thread!

Eventy

Your banner here too?

BartHuis barthuis Joined 19 May 2016

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.