| Conditions | 1 |
| Paths | 1 |
| Total Lines | 4 |
| Code Lines | 2 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | public function paginate($perPage = null, $columns = ['*'], $pageName = 'page', $page = null) |
||
| 19 | { |
||
| 20 | return $this->applyCriteria(function () use ($perPage) { |
||
| 21 | return $this->model->select(['id', 'title', 'created_at', 'user_id', 'views', 'votes', 'role'])->with(['user', 'tags'])->withCount('comments')->paginate($perPage); |
||
| 22 | }); |
||
| 25 |