Explorar el Código

:art: formatting

visuddhinanda hace 10 meses
padre
commit
ec115ed503
Se han modificado 1 ficheros con 7 adiciones y 1 borrados
  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()
     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 模型
      * 关联到 Channel 模型