This command purge expired access/refresh tokens for Laravel Passport
This command purge expired access/refresh tokens for Laravel Passport to not overload your database
- Install the command with composer :
composer require "gpibarra/lavarel-passport-purge-command"
- Add the command to your /config/app.php in the providers array or discover package in Laravel ^5.5:
'providers' => [ \gpibarra\LavarelPassportPurgeCommand\LavarelPassportPurgeCommandServiceProvider::class ];
php artisan passport:purge
--days : Number of days the tokens must be expired, default 30.