visuddhinanda 1 год назад
Родитель
Сommit
3bd39b5dd8
1 измененных файлов с 4 добавлено и 0 удалено
  1. 4 0
      app/Http/Resources/TagMapResource.php

+ 4 - 0
app/Http/Resources/TagMapResource.php

@@ -23,11 +23,15 @@ class TagMapResource extends JsonResource
             'table_name' => $this->table_name,
             'anchor_id' => $this->anchor_id,
             'tag_id' => $this->tag_id,
+            'name' => $this->name,
+            'color' => $this->color,
+            'description' => $this->description,
             "editor"=> UserApi::getByUuid($this->editor_uid),
             "owner" => StudioApi::getById($this->owner_uid),
             'created_at' => $this->created_at,
             'updated_at' => $this->updated_at,
         ];
+
         switch ($this->table_name) {
             case 'sentence':
                 # code...