library lavarel-passport-purge-command
This command purge expired access/refresh tokens for Laravel Passport
pierrocknroll/lavarel-passport-purge-command
This command purge expired access/refresh tokens for Laravel Passport
- Thursday, March 15, 2018
- by pierrocknroll
- Repository
- 2 Watchers
- 1 Stars
- 21 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 2 Forks
- 0 Open issues
- 2 Versions
- 0 % Grown
lavarel-passport-purge-command
This command purges expired access/refresh tokens for Laravel Passport to not overload your database, (*1)
Installation
- Install the command with composer :
composer require "pierrocknroll/lavarel-passport-purge-command @dev"
- For Laravel <= 5.4, add the command to your /config/app.php in the providers array :
\Pierrocknroll\LavarelPassportPurgeCommand\ServiceProvider::class
For Laravel >= 5.5, the package is auto discovered., (*2)
Usage
php artisan passport:purge
Options
--days : Number of days the tokens must be expired, default 30.
1.0.0
1.0.0.0
This command purge expired access/refresh tokens for Laravel Passport
Sources
Download