adds soft deletes to eager loading

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

View file

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