Samson Mutunga 3 жил өмнө
parent
commit
30862d892b

+ 4 - 1
app/Models/Pro.php

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