fixed order list resource

This commit is contained in:
Edward Yang 2023-02-07 17:53:30 +08:00
parent 572e23b2bb
commit f0239b8f62
1 changed files with 5 additions and 2 deletions

View File

@ -18,8 +18,11 @@ class OrderList extends JsonResource
public function toArray($request): array
{
$data = [
'id' => $this->id,
'number' => $this->number,
'id' => $this->id,
'number' => $this->number,
'status_format' => $this->status_format,
'next_status' => $this->getNextStatuses(),
'status' => $this->status,
];
return $data;