Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

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
9+1 =