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

The table you reference in the last foreign key statement is 'car' but the table is 'cars'.

Does this help?

Last updated 1 year ago.
0

This issue hasn't even been fixed in 5.1. What can we do to have Tyler fix this in the next release?

0

As I see, this is not a laravel issue, this is a MySQL issue.

IMHO, is not a bug, its a detail of implementation: you cannot reference a FK to a yet-not-created table and table PK.

The way around that is simple: order your migrations to guarantee that all FK declarations references pre-created tables.

Last updated 8 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

erneyja erneyja Joined 13 Feb 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.