I've installed Passport with Laravel 5.3 and configured to use Personal Access Token. I am sending username and password to `/oauth/token' route and get a token. Everything is fine until here.
But if I want to get current logged in user with $user = Auth::user(); as we used to get it before, I get null value as Laravel don't keep any session for API Token. In this situation, how can I get the current user? Can I modify any file to get the current user along with token?
Thanks In Advance Arif
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2m1YRri
via IFTTT
Aucun commentaire:
Enregistrer un commentaire