| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 24 | public function toArray(Request $request): array |
||
| 25 | { |
||
| 26 | return [ |
||
| 27 | 'data' => $this->collection, |
||
| 28 | 'meta' => [ |
||
| 29 | 'total' => $this->resource->total(), |
||
| 30 | 'per_page' => $this->resource->perPage(), |
||
| 31 | 'current_page' => $this->resource->currentPage(), |
||
| 32 | 'last_page' => $this->resource->lastPage(), |
||
| 33 | 'from' => $this->resource->firstItem(), |
||
| 34 | 'to' => $this->resource->lastItem(), |
||
| 35 | ], |
||
| 39 |