php - Laravel Unauthenticated passport
My Postman request with dd() in Authenticate.php
I am not sure where the problem is when I have it withoud dd I just get unauthenticated which doesnt makes sence since it should not go to the route(login) but I cannot continue on it since I dont know where it goes after this so I cant even trace where this happens.
protected function redirectTo($request)
{
if (! $request->expectsJson()) {
return route('login');
}
}
Answer
Solution:
can you attach the image of your Authenticate.php file?
Answer
Solution:
Try this if you haven't added yet.
Source