瀏覽代碼

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');