adds soft deletes to eager loading

This commit is contained in:
Godfrey M 2023-08-23 00:32:43 -07:00
parent 92ddf8fc67
commit ce60db009c

View file

@ -152,10 +152,10 @@ class ActionlogsTransformer
* @return array
*/
public function changedInfo(array $clean_meta)
{ $location = Location::all();
$company = Company::all();
$supplier = Supplier::all();
$model = AssetModel::all();
{ $location = Location::withTrashed()->all();
$company = Company::withTrashed()->all();
$supplier = Supplier::withTrashed()->all();
$model = AssetModel::withTrashed()->get();
if(array_key_exists('rtd_location_id',$clean_meta)) {