| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 33 | public function toArray($request) |
||
| 34 | { |
||
| 35 | return $this->rejectNullValues([ |
||
| 36 | 'id' => $this->id, |
||
|
|
|||
| 37 | 'created_at_human' => optional($this->created_at)->diffForHumans(), |
||
| 38 | 'updated_at_human' => optional($this->updated_at)->diffForHumans(), |
||
| 39 | ] + Arr::only( |
||
| 40 | $this->resource->toArray(), |
||
| 41 | $this->dataTable()->getDisplayableColumns() |
||
| 42 | )); |
||
| 45 |