| @@ 83-92 (lines=10) @@ | ||
| 80 | * @param array $columns |
|
| 81 | * @return mixed |
|
| 82 | */ |
|
| 83 | public function findAllWhereIn(array $value, $field, array $columns = ['*']) |
|
| 84 | { |
|
| 85 | $this->eagerLoadRelations(); |
|
| 86 | $this->applyCriteria(); |
|
| 87 | $result = $this->model->whereIn( $field, $value )->get( $columns ); |
|
| 88 | ||
| 89 | $this->resetScope(); |
|
| 90 | ||
| 91 | return $result; |
|
| 92 | } |
|
| 93 | ||
| 94 | /** |
|
| 95 | * @param array $columns |
|
| @@ 150-159 (lines=10) @@ | ||
| 147 | * @param array $columns |
|
| 148 | * @return mixed |
|
| 149 | */ |
|
| 150 | public function paginate($perPage, array $columns = ['*']) |
|
| 151 | { |
|
| 152 | $this->eagerLoadRelations(); |
|
| 153 | $this->applyCriteria(); |
|
| 154 | $result = $this->model->paginate( $perPage, $columns ); |
|
| 155 | ||
| 156 | $this->resetScope(); |
|
| 157 | ||
| 158 | return $result; |
|
| 159 | } |
|
| 160 | ||
| 161 | ||
| 162 | /** |
|