From ce7b2e2aa433b5424c535a88c91588546232c043 Mon Sep 17 00:00:00 2001 From: mahdihty Date: Sat, 6 Mar 2021 18:02:53 +0330 Subject: [PATCH] fix tags --- app/Http/Resources/TaskResource.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;