How to get all rows (soft deleted too) from a table in Laravel?
Solution 1:
To also get soft deleted models
$trashedAndNotTrashed = Model::withTrashed()->get();
Only soft deleted models in your results
$onlySoftDeleted = Model::onlyTrashed()->get();
Solution 2:
Use this to get all record
Model::withTrashed()->get();
Use this to get record of particular id
Property::withTrashed()->find($list->property_id);
or
// 1 is unique id of the table
Model::withTrashed()->find(1);