Laravel migrations run in the alphabetical order of their file name
“General error: 1005 Can’t create table [..] Foreign key constraint is incorrectly formed”
This happened when the migration of my in-between table ran before the table its FKs were linked to. First I thought I can not use Laravel’s foreign key constraints but at some point I figured it out. Renaming the migration file helped.