소스 검색

add note 关联到ProgressChapter

visuddhinanda 1 년 전
부모
커밋
d063918198
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      api-v8/app/Models/Tag.php

+ 3 - 0
api-v8/app/Models/Tag.php

@@ -17,6 +17,9 @@ class Tag extends Model
 
     use HasFactory;
 
+    /**
+     * 关联到ProgressChapter
+     */
     public function chapters()
     {
         return $this->belongsToMany('App\Models\ProgressChapter', 'tag_maps', 'tag_id', 'anchor_id');