Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel sanctum Provoking tokens

// Revoke all tokens...
$user->tokens()->delete();

// Revoke a specific token...
$user->tokens()->where('id', $tokenId)->delete();
Source by laravel.com #
 
PREVIOUS NEXT
Tagged: #laravel #sanctum #Provoking #tokens
ADD COMMENT
Topic
Name
7+6 =