Sfoglia il codice sorgente

Restore missing function

Samson Mutunga 3 anni fa
parent
commit
30862d892b
1 ha cambiato i file con 4 aggiunte e 1 eliminazioni
  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);
+    }
 }