X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=app%2FHttp%2FControllers%2FUserController.php;h=8c451fc1328c3260ff6a9ed0c984b353536d917a;hb=beccf752aafd468c3753c6d48ae30bccd946c3b9;hp=c0ab73d9b442a30ff340375e97d4747b0e5e9a5f;hpb=a21cc53ca73ca1690f53bc2ec3c2a1a2948d67dd;p=alttp.git diff --git a/app/Http/Controllers/UserController.php b/app/Http/Controllers/UserController.php index c0ab73d..8c451fc 100644 --- a/app/Http/Controllers/UserController.php +++ b/app/Http/Controllers/UserController.php @@ -41,6 +41,8 @@ class UserController extends Controller public function single(Request $request, $id) { $user = User::findOrFail($id); $this->authorize('view', $user); + $user->load('participation'); + $user->load('participation.tournament'); return $user->toJson(); }