Possible solutions but not sure:
Try
$table->unsignedInteger('user_id');
instead of
$table->integer('user_id')->unsigned();
Maybe you trying add a foreign key to the users table, before the users table is created?
For those folks who wander here from Google, don't forget to put
...
$table->engine = InnoDB;
...
into both migrations!
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community