Explorar o código

Update LikeService

Daniel Supernault %!s(int64=3) %!d(string=hai) anos
pai
achega
168c19c5b6
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  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();
+	}
 }