Преглед изворни кода

add note 关联到ProgressChapter

visuddhinanda пре 11 месеци
родитељ
комит
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;
     use HasFactory;
 
 
+    /**
+     * 关联到ProgressChapter
+     */
     public function chapters()
     public function chapters()
     {
     {
         return $this->belongsToMany('App\Models\ProgressChapter', 'tag_maps', 'tag_id', 'anchor_id');
         return $this->belongsToMany('App\Models\ProgressChapter', 'tag_maps', 'tag_id', 'anchor_id');