$users = DB::table('users')
->whereBetween('votes', [20, 100])
->orderBy('votes', 'desc')
->paginate(10);
$i = ($page_num*10)-1;
foreach(){
$i++;
echo $i;
}
foreach($users as $user){
echo $user->id;
}
@foreach($users as $user)
{{ $user->id }}
@endforeach
$users = DB::table('users')
->select('id', 'rank')
->whereBetween('votes', [20, 100])
->orderBy('votes', 'desc')
->paginate(10);