X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;ds=inline;f=app%2FHttp%2FControllers%2FUserController.php;h=692c45862feb0e21186862476cf9ff5a76e31bc8;hb=2ab05ab7927e8b21887ffa42d04eb9d4ff899382;hp=8c451fc1328c3260ff6a9ed0c984b353536d917a;hpb=d32516335ea2534e15256c948e9c38d3de40794b;p=alttp.git diff --git a/app/Http/Controllers/UserController.php b/app/Http/Controllers/UserController.php index 8c451fc..692c458 100644 --- a/app/Http/Controllers/UserController.php +++ b/app/Http/Controllers/UserController.php @@ -43,6 +43,12 @@ class UserController extends Controller $this->authorize('view', $user); $user->load('participation'); $user->load('participation.tournament'); + $user->loadCount('round_first'); + $user->loadCount('round_second'); + $user->loadCount('round_third'); + $user->loadCount('tournament_first'); + $user->loadCount('tournament_second'); + $user->loadCount('tournament_third'); return $user->toJson(); }