| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 52 | public function __construct(AnonymousResourceCollection $collection) |
||
| 53 | { |
||
| 54 | $this->request = app('datatables.request'); |
||
| 55 | $this->config = app('datatables.config'); |
||
| 56 | $this->collection = collect($collection->toArray($this->request)); |
||
| 57 | $this->original = $collection; |
||
| 58 | $this->columns = array_keys($this->serialize(collect($collection->toArray($this->request))->first())); |
||
| 59 | if ($collection->resource instanceof LengthAwarePaginator) { |
||
| 60 | $this->isFilterApplied = true; |
||
| 61 | } |
||
| 62 | } |
||
| 63 | } |
||
| 64 |