ManageSanctumTokens
extends Command
in package
Table of Contents
Properties
- $description : string
- The console command description.
- $signature : string
- The name and signature of the console command.
Methods
- handle() : int
- Execute the console command.
- cacheAllTokens() : mixed
- Cache all active tokens.
- cleanExpiredTokens() : mixed
- Remove expired tokens.
- clearTokenCache() : mixed
- Clear token cache.
- showStats() : mixed
- Show token stats.
Properties
$description
The console command description.
protected
string
$description
= 'Manage Sanctum tokens (clean expired, cache all, clear cache)'
$signature
The name and signature of the console command.
protected
string
$signature
= 'sanctum:tokens
{action : Action to perform (clean, cache, clear)}'
Methods
handle()
Execute the console command.
public
handle() : int
Return values
intcacheAllTokens()
Cache all active tokens.
protected
cacheAllTokens() : mixed
cleanExpiredTokens()
Remove expired tokens.
protected
cleanExpiredTokens() : mixed
clearTokenCache()
Clear token cache.
protected
clearTokenCache() : mixed
showStats()
Show token stats.
protected
showStats() : mixed