dyjh il y a 6 ans
Parent
commit
ddcf6c987f
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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]]);
             }