...
|
...
|
@@ -774,7 +774,8 @@ class Order extends Base |
|
|
$name = $this->model->getQuery()->getTable();
|
|
|
$tableName = $name . '.';
|
|
|
|
|
|
$orders = $this->model->withTrashed();
|
|
|
// $orders = $this->model->withTrashed();
|
|
|
$orders = $this->model;
|
|
|
|
|
|
if ($nickname || $mobile) {
|
|
|
$orders = $orders->whereExists(function ($query) use ($nickname, $mobile, $tableName) {
|
...
|
...
|
|