Pārlūkot izejas kodu

Restore missing function

Samson Mutunga 3 gadi atpakaļ
vecāks
revīzija
30862d892b
1 mainītis faili ar 4 papildinājumiem un 1 dzēšanām
  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);
+    }
 }