diff --git a/app/crm/controller/CustomerController.php b/app/crm/controller/CustomerController.php index b00af0d..3b6e8ec 100644 --- a/app/crm/controller/CustomerController.php +++ b/app/crm/controller/CustomerController.php @@ -560,7 +560,7 @@ class CustomerController extends BaseController return $this->error( trans('user_none')); } - $query= Customer::whereIn('id',explode(',',$customerId)); + $query= Customer::withTrashed()->whereIn('id',explode(',',$customerId)); try { $customer = $query->get(); @@ -579,6 +579,8 @@ class CustomerController extends BaseController $inquiryLog->save(); } } + + $item->restore(); } $data = [