📜  如何在 laravel 8 中强制删除 - PHP 代码示例

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

代码示例3
Product::onlyTrashed()->where('deleted_at', '<', Carbon::subDays(30))->forceDelete();