Browse Source

Update LikeService

Daniel Supernault 3 years ago
parent
commit
168c19c5b6
1 changed files with 5 additions and 0 deletions
  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();
+	}
 }