categor fields for api changed

This commit is contained in:
merdan 2021-11-02 16:28:02 +05:00
parent 6d53ddd200
commit 97c5b7b151
1 changed files with 3 additions and 2 deletions

View File

@ -19,10 +19,11 @@ class Category extends JsonResource
'id' => $this->id,
// 'code' => $this->code,
'name' => $this->name,
'slug' => $this->slug,
// 'slug' => $this->slug,
// 'display_mode' => $this->display_mode,
'description' => $this->description,
// 'description' => $this->description,
// 'status' => $this->status,
'menu' => $this->visible_in_menu,
'image_url' => $this->image_url,
'category_icon_path' => $this->category_icon_path
? Storage::url($this->category_icon_path)