소스 검색

:art: formatting

visuddhinanda 11 달 전
부모
커밋
ec115ed503
1개의 변경된 파일7개의 추가작업 그리고 1개의 파일을 삭제
  1. 7 1
      api-v8/app/Models/ProgressChapter.php

+ 7 - 1
api-v8/app/Models/ProgressChapter.php

@@ -35,7 +35,13 @@ class ProgressChapter extends Model
 
     public function tags()
     {
-        return $this->belongsToMany('App\Models\Tag', 'tag_maps', 'anchor_id', 'tag_id');
+        return $this->belongsToMany(
+            'App\Models\Tag',
+            'tag_maps',
+            'anchor_id',
+            'tag_id',
+            'uid'
+        );
     }
     /**
      * 关联到 Channel 模型