I'm using Laravel's Passport to build an api backend. I implemented the CreateFreshApiToken class to consume the api with JavaScript; this works. But now I want to test my api in Postman - what's the best practice getting the Bearer attribute?
I've tried $request->bearerToken()but I only get null.
If bearerToken is null then there is no token being passed in the Authorization header that begins with 'Bearer '.
In Postman, you can set the Bearer token using the Authorization tab, select Bearer Token in the Type dropdown, and paste your token in the Token field.