📜  获取已删除的值 laravel - PHP 代码示例

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

代码示例1
You can get also soft deleted record using withTrashed() of Laravel 
Eloquent. It will return all record from table.

Item::withTrashed()->get();

You can get only soft deleted row using onlyTrashed() of Laravel Eloquent.

Item::onlyTrashed()->get();