Browse Source

add strlen

visuddhinanda 2 years ago
parent
commit
b7bd7bff9b
1 changed files with 1 additions and 0 deletions
  1. 1 0
      app/Http/Resources/VocabularyResource.php

+ 1 - 0
app/Http/Resources/VocabularyResource.php

@@ -21,6 +21,7 @@ class VocabularyResource extends JsonResource
         return [
         return [
             "word"=>$this['word'],
             "word"=>$this['word'],
             "count"=> $this['count'],
             "count"=> $this['count'],
+            "strlen"=> $this['strlen'],
             "meaning"=> $dictMeaning->get($this['word'],$request->get("lang","zh-Hans")),
             "meaning"=> $dictMeaning->get($this['word'],$request->get("lang","zh-Hans")),
         ];
         ];
     }
     }