richardmichel/passport-cache-token is a Laravel package.
It currently has 0 GitHub stars and 42 downloads on Packagist (latest version v1.0.3).
Install it with composer require richardmichel/passport-cache-token.
Discover more Laravel packages by richardmichel
or browse all Laravel packages to compare alternatives.
Last updated
Make laravel/passport token cacheable.
$ composer require richardmichel/passport-cache-token -vvv
Thanks to Laravel's automatic package discovery mechanism, you don't need to do any additional operations.
Of course, you can also control the cache strategy freely, just need to configure the following in the configuration file:
config/passport.php
return [
//...
'cache' => [
// Cache key prefix
'prefix' => 'passport_',
// The lifetime of token cache,
// Unit: second
'expires_in' => 300,
// Cache tags
'tags' => [],
],
];