Parcourir la source

:art: formatting

visuddhinanda il y a 9 mois
Parent
commit
ec115ed503
1 fichiers modifiés avec 7 ajouts et 1 suppressions
  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 模型