Ver Fonte

Update LikeService

Daniel Supernault há 3 anos atrás
pai
commit
168c19c5b6
1 ficheiros alterados com 5 adições e 0 exclusões
  1. 5 0
      app/Services/LikeService.php

+ 5 - 0
app/Services/LikeService.php

@@ -80,4 +80,9 @@ class LikeService {
 
 		return $res;
 	}
+
+	public static function count($id)
+	{
+		return Like::whereStatusId($id)->count();
+	}
 }