Reputation: 3854
I was trying to get the details of logged in user got this link
use JWTAuth;
$user=JWTAuth::toUser($token);
i tried this also $user = auth()->user();
getting NULL
$token variable is same which i have i browser local storage.
this link i found but this is not working in my case.
Upvotes: 0
Views: 1200