瀏覽代碼

Restore missing function

Samson Mutunga 3 年之前
父節點
當前提交
30862d892b
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      app/Models/Pro.php

+ 4 - 1
app/Models/Pro.php

@@ -1360,5 +1360,8 @@ ORDER BY cm.created_at DESC
         })->count();
     }
 
-
+    public function activeClientReviewRequests()
+    {
+        return $this->hasMany(ClientReviewRequest::class, 'pro_id')->where('is_active', true);
+    }
 }