diff --git a/app/Http/Controllers/AuthController.php b/app/Http/Controllers/AuthController.php index 0a6d2f31b..7faea1a05 100644 --- a/app/Http/Controllers/AuthController.php +++ b/app/Http/Controllers/AuthController.php @@ -45,4 +45,9 @@ public function logout(Request $request) $request->user()->token()->revoke(); return response()->json((new JsonResponse())->success([]), Response::HTTP_OK); } + + public function user() + { + return new UserResource(Auth::user()); + } }