app/Repo/DBRepository.php 1 location
|
@@ 93-95 (lines=3) @@
|
| 90 |
|
$model = $model->where('user_id', $this->memberId); |
| 91 |
|
} |
| 92 |
|
|
| 93 |
|
if ($this->isSortable($params)) { |
| 94 |
|
return $model->orderBy($params['sortBy'], $params['direction'])->paginate($this->perPage); |
| 95 |
|
} |
| 96 |
|
|
| 97 |
|
return $model->paginate($this->perPage); |
| 98 |
|
} |
app/Repo/PaymentRepository.php 1 location
|
@@ 53-55 (lines=3) @@
|
| 50 |
|
$model = $model->where('source', $this->source); |
| 51 |
|
} |
| 52 |
|
|
| 53 |
|
if ($this->isSortable($params)) { |
| 54 |
|
return $model->orderBy($params['sortBy'], $params['direction'])->paginate($this->perPage); |
| 55 |
|
} |
| 56 |
|
return $model->paginate($this->perPage); |
| 57 |
|
} |
| 58 |
|
|
app/Repo/UserRepository.php 1 location
|
@@ 55-57 (lines=3) @@
|
| 52 |
|
$model = $model->where('status', '!=', 'left'); |
| 53 |
|
} |
| 54 |
|
|
| 55 |
|
if ($this->isSortable($params)) { |
| 56 |
|
return $model->orderBy($params['sortBy'], $params['direction'])->simplePaginate($this->perPage); |
| 57 |
|
} |
| 58 |
|
return $model->simplePaginate($this->perPage); |
| 59 |
|
} |
| 60 |
|
|