Laravel migration添加foreign key时提示错误:key column ‘xxx’ dons’t exist的原因和解决办法董德多2021年2月2日0 Laravel migration添加foreign key时报错,错误信息为:key column xxx donst exist。错误代码如下: Schema::create(emperors, function (Blueprint $table) {$table-bigIncrements(id);$table-string(name);$table-foreign(dynasty_id)