Daniel Supernault 3 роки тому
батько
коміт
168c19c5b6
1 змінених файлів з 5 додано та 0 видалено
  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();
+	}
 }