diff --git a/src/Sprunje/UserSprunje.php b/src/Sprunje/UserSprunje.php index e697ad5..17573cf 100644 --- a/src/Sprunje/UserSprunje.php +++ b/src/Sprunje/UserSprunje.php @@ -82,4 +82,28 @@ class UserSprunje extends UFUserSprunje return $this; } + + /** + * Get the unpaginated count of items (before filtering) in this query. + * + * @param Builder $query + * + * @return int + */ + protected function count($query) + { + return $query->distinct('users.id')->count(); + } + + /** + * Get the unpaginated count of items (after filtering) in this query. + * + * @param Builder $query + * + * @return int + */ + protected function countFiltered($query) + { + return $query->distinct('users.id')->count(); + } }