pierrocknroll/lavarel-passport-purge-command

There is no license information available for the latest version (1.0.0) of this package.

This command purge expired access/refresh tokens for Laravel Passport

Installs: 6 592

Dependents: 0

Suggesters: 0

Security: 0

Stars: 11

Watchers: 2

Forks: 2

Open Issues: 0

pkg:composer/pierrocknroll/lavarel-passport-purge-command

1.0.0 2018-01-04 10:18 UTC

This package is not auto-updated.

Last update: 2025-09-28 11:03:31 UTC


README

This command purges expired access/refresh tokens for Laravel Passport to not overload your database

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.

Usage

php artisan passport:purge

Options

--days : Number of days the tokens must be expired, default 30.