Browse Source

case is string

visuddhinanda 3 years ago
parent
commit
843213bb12
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Http/Resources/RelationResource.php

+ 1 - 1
app/Http/Resources/RelationResource.php

@@ -18,7 +18,7 @@ class RelationResource extends JsonResource
         return [
             "id"=>$this->id,
             "name"=> $this->name,
-            "case"=> json_decode($this->case),
+            "case"=> $this->case,
             "to"=> json_decode($this->to),
             "editor"=> UserApi::getById($this->editor_id),
             "created_at"=> $this->created_at,