Reputation: 37
Will auth::user() work to get authorized credentials?
auth::user()
If not how can I get those?
Upvotes: 1
Views: 450
Reputation: 4330
with passport i use return Auth::guard('api')->user();
return Auth::guard('api')->user();
Upvotes: 2
Reputation:
With Passport you can access the user via the request object:
$request->user()
Upvotes: 0