1Suppose $users is a paginated eloquent collection
2
3$users = User::paginate(10);
4
5You can append attributes to the pagination links;
6
7{{ $users->appends(['sort' => 'votes'])->links() }}
8
9This would result in a url like /users?page=2&sort=votes
10
11You can get the total record count with $users->total()