Skip to content

Commit

Permalink
Fixed missing code
Browse files Browse the repository at this point in the history
  • Loading branch information
tuandm committed Mar 10, 2020
1 parent e7bed84 commit 050ffbd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/Http/Controllers/AuthController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
}

0 comments on commit 050ffbd

Please sign in to comment.