DEV Community

Discussion on: How to retrieve tokenID from acess_token (Personal Access Token)

Collapse
 
skebard profile image
Antonio Jorda

If you are using the auth middleware then you can access the Token object and from that object get the id of the token
$id = $request->user()->token()->id;