Explorar o código

Restore missing function

Samson Mutunga %!s(int64=3) %!d(string=hai) anos
pai
achega
30862d892b
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  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);
+    }
 }