Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

access user tokens laravel 9

   // Get bearer token from request
	$accessToken = $request->bearerToken();
	
	// Get access token from database
	$token = PersonalAccessToken::findToken($accessToken);

	// Get user data
	$userData = $token->tokenable;
 
PREVIOUS NEXT
Tagged: #access #user #tokens #laravel
ADD COMMENT
Topic
Name
5+5 =