]> git.localhorst.tv Git - alttp.git/blobdiff - app/Http/Controllers/UserController.php
show tournament participation in profile
[alttp.git] / app / Http / Controllers / UserController.php
index c0ab73d9b442a30ff340375e97d4747b0e5e9a5f..8c451fc1328c3260ff6a9ed0c984b353536d917a 100644 (file)
@@ -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();
        }