LaravelPackages.net
Acme Inc.
Toggle sidebar
richardmichel/passport-cache-token

42
0
v1.0.3
About richardmichel/passport-cache-token

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

Laravel Passport Cache Token

Make laravel/passport token cacheable.

Installing

$ composer require richardmichel/passport-cache-token -vvv

Usage

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' => [],
    ],
];
Comments