Merge branch 'main' of https://github.com/AmirmahdiNourkazemi/back-meditation
This commit is contained in:
@@ -629,7 +629,7 @@ public function googleLogin(Request $request)
|
||||
|
||||
public function leaderBoard(){
|
||||
$users = User::with(['breathingSessions.template'])->where('xp', '>', 0)
|
||||
->orderBy('xp', 'desc')
|
||||
->orderBy('xp', 'desc')->limit(20)
|
||||
->get();
|
||||
|
||||
return $users;
|
||||
|
||||
Reference in New Issue
Block a user