Explorar el Código

Update LikeService

Daniel Supernault hace 3 años
padre
commit
168c19c5b6
Se han modificado 1 ficheros con 5 adiciones y 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();
+	}
 }