src/Config/ModelFactory.php 1 location
|
@@ 78-84 (lines=7) @@
|
| 75 |
|
$query = $query->withTrashed(); |
| 76 |
|
} |
| 77 |
|
|
| 78 |
|
if ($this->usePagination()) { |
| 79 |
|
$data = $query->paginate($this->config->get('perPage')); |
| 80 |
|
|
| 81 |
|
$data->setCollection($this->parseRows($data->getCollection())); |
| 82 |
|
} else { |
| 83 |
|
$data = $this->parseRows($query->get()); |
| 84 |
|
} |
| 85 |
|
|
| 86 |
|
return $data; |
| 87 |
|
} |
src/View/Table.php 1 location
|
@@ 80-86 (lines=7) @@
|
| 77 |
|
$query->withTrashed(); |
| 78 |
|
} |
| 79 |
|
|
| 80 |
|
if ($this->usePagination()) { |
| 81 |
|
$data = $query->paginate($this->perPage, ['*'], $this->pageName); |
| 82 |
|
|
| 83 |
|
$data->setCollection($this->parseRows($data->getCollection())); |
| 84 |
|
} else { |
| 85 |
|
$data = $this->parseRows($query->get()); |
| 86 |
|
} |
| 87 |
|
|
| 88 |
|
return $data; |
| 89 |
|
} |