diff --git a/app/Http/Resources/TaskResource.php b/app/Http/Resources/TaskResource.php index eab56f3..94491fb 100644 --- a/app/Http/Resources/TaskResource.php +++ b/app/Http/Resources/TaskResource.php @@ -21,7 +21,7 @@ class TaskResource extends JsonResource } } - $resource['tags'] = $this->tags; + $resource['tags'] = $this->tags()->pluck('tag_id')->toArray(); $resource['works'] = $this->works; $resource['comments'] = $this->comments;