更新时间:2021-12-06 08:45:19
正如错误所说,您不能截断外键引用的表.删除应该可以工作...
As the error says, you can not truncate tables referenced by foreign keys. Delete should work though...
DB::table('some_table')->delete();
Laravel 5.1迁移和播种无法截断外键约束中引用的表
Laravel 5.1 迁移和播种无法截断外键约束中引用的表