The Laravel Artisan Cheatsheet now has an API. Learn more.

sanctum:prune-expired

Prune tokens expired for more than specified number of hours

Options

  • hours - The number of hours to retain expired Sanctum tokens Optional
php artisan sanctum:prune-expired [--hours [HOURS]]