get deleted value laravel

Solutions on MaxInterview for get deleted value laravel by the best coders in the world

showing results for - "get deleted value laravel"
Omar
04 Sep 2018
1You can get also soft deleted record using withTrashed() of Laravel 
2Eloquent. It will return all record from table.
3
4Item::withTrashed()->get();
5
6You can get only soft deleted row using onlyTrashed() of Laravel Eloquent.
7
8Item::onlyTrashed()->get();