PHP code example of laravel-dev-common / union-middleware-checklogin
1. Go to this page and download the library: Download laravel-dev-common/union-middleware-checklogin 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/ */
laravel-dev-common / union-middleware-checklogin example snippets
`
return [
'mid'=>[
'checkLogin'=>[
'redis'=>'default',//redis库,./app/config/database中redis配置中取值
'token_prefix'=>'tk',//redis中用于token的前缀
'name_param'=>'uid',//用户登陆名
'token_param'=>'token',//用户登陆token
]
]
];