“General error: 1005 Can’t create table” Using Laravel Schema Build and Foreign Keys
I’ve been having the same problem. I just noticed the following note at the very bottom of the Laravel Schema docs: Note: The field referenced in the foreign key is very likely an auto increment and therefore automatically an unsigned integer. Please make sure to create the foreign key field with unsigned() as both fields … Read more