1

Will auth::user() work to get authorized credentials?

If not how can I get those?

2 Answers 2

2

with passport i use return Auth::guard('api')->user();

Sign up to request clarification or add additional context in comments.

Comments

0

With Passport you can access the user via the request object:

$request->user()

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.