📜  删除表 laravel 中的所有行 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:42.734000             🧑  作者: Mango

代码示例2
// Uncomment the below to wipe the table clean before populating

DB::table('table_name')->truncate();

//or

DB::table('table_name')->delete();