PHP code example of wlfpanda1012 / laravel-passport-cache

1. Go to this page and download the library: Download wlfpanda1012/laravel-passport-cache library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

wlfpanda1012 / laravel-passport-cache example snippets


            return [
                //...
                'cache' => [
                    'token' => [
                        // Cache key prefix
                        'prefix' => 'passport_token',

                        // The lifetime of token cache,
                        // Unit: second
                        'expires_in' => 300,

                        // Cache tags
                        'tags' => [],
                    ],
                    'client' => [
                        // Cache key prefix
                        'prefix' => 'passport_client',

                        // The lifetime of token cache,
                        // Unit: second
                        'expires_in' => 300,

                        // Cache tags
                        'tags' => [],
                    ],
                ],
            ];