Browse Source

Restore missing function

Samson Mutunga 3 năm trước cách đây
mục cha
commit
30862d892b
1 tập tin đã thay đổi với 4 bổ sung1 xóa
  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);
+    }
 }