dyjh %!s(int64=6) %!d(string=hai) anos
pai
achega
ddcf6c987f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/Repositories/Album/Criteria/AgentWhere.php

+ 1 - 1
app/Repositories/Album/Criteria/AgentWhere.php

xqd
@@ -51,7 +51,7 @@ class AgentWhere extends Criteria {
                 if ($status == 3) {
                     $model->where('is_boss', 1);
                 }
-            })->with(['user:username as nickname,user:is_boss']);
+            })->with(['user:username as nickname,is_boss']);
             if ($status == 2) {
                 $model = $model->where([['status', 1]]);
             }