更新时间:2023-12-03 22:39:46
您尝试过吗?
$table->integer('ban_id', 11)->unsigned;
Laravel - Foreign Keys (注意此部分下面的粉红色框)
Laravel - Foreign Keys (note the pink box under this section)
Laravel迁移将不会添加外键与整数类型(mysql)