diff --git a/app/Http/Controllers/Api/UsersController.php b/app/Http/Controllers/Api/UsersController.php index 3903dceb4b..1bab31243e 100644 --- a/app/Http/Controllers/Api/UsersController.php +++ b/app/Http/Controllers/Api/UsersController.php @@ -83,9 +83,9 @@ class UsersController extends Controller $users = $users->orderBy($sort, $order); break; } - $userCount = $users->count(); + $total = $users->count(); $users = $users->skip($offset)->take($limit)->get(); - return (new UsersTransformer)->transformUsers($users, $userCount); + return (new UsersTransformer)->transformUsers($users, $total); }