Forum Laravel SQLSTATE[HY000]: General error: 1005 Can't create table `db_drop`.`states` (errno: 150 "Foreign key constraint is incorrectly formed") (SQL: alter table `states` add constraint `states_c_id_foreign` foreign key (`c_id`) references `countries` (`s_id`) on
Please sign in or create an account to participate in this conversation.
There's no shortage of content at Laracasts. In fact, you could watch nonstop for days upon days, and still not see everything!
Get Started
SQLSTATE[HY000]: General error: 1005 Can't create table `db_drop`.`states` (errno: 150 "Foreign key constraint is incorrectly formed") (SQL: alter table `states` add constraint `states_c_id_foreign` foreign key (`c_id`) references `countries` (`s_id`) on