소스 검색

Update LikeService

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();
+	}
 }