Committed by
GitHub
Merge pull request #8 from susanhsrestha/refactor/login-function
Login endpoint calls an undefined function
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -41,7 +41,7 @@ class UserController extends Controller | ... | @@ -41,7 +41,7 @@ class UserController extends Controller |
41 | public function login(LoginRequest $request): array | 41 | public function login(LoginRequest $request): array |
42 | { | 42 | { |
43 | if ($token = auth()->attempt($request->validated()['user'])) { | 43 | if ($token = auth()->attempt($request->validated()['user'])) { |
44 | - return $this->userResource($token); | 44 | + return $this->userResponse($token); |
45 | } | 45 | } |
46 | 46 | ||
47 | abort(Response::HTTP_FORBIDDEN); | 47 | abort(Response::HTTP_FORBIDDEN); | ... | ... |
-
Please register or login to post a comment