added code and description fields to category resource
This commit is contained in:
parent
804cb8e568
commit
09574e0335
|
|
@ -17,9 +17,11 @@ class Category extends JsonResource
|
||||||
return [
|
return [
|
||||||
'id' => $this->id,
|
'id' => $this->id,
|
||||||
'company_id' => $this->company_id,
|
'company_id' => $this->company_id,
|
||||||
|
'code' => $this->code,
|
||||||
'name' => $this->name,
|
'name' => $this->name,
|
||||||
'type' => $this->type,
|
'type' => $this->type,
|
||||||
'color' => $this->color,
|
'color' => $this->color,
|
||||||
|
'description' => $this->description,
|
||||||
'enabled' => $this->enabled,
|
'enabled' => $this->enabled,
|
||||||
'parent_id' => $this->parent_id,
|
'parent_id' => $this->parent_id,
|
||||||
'created_from' => $this->created_from,
|
'created_from' => $this->created_from,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue