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.
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/3qlpo5t
via IFTTT
Aucun commentaire:
Enregistrer un commentaire