alifcapital/lumen-user-service-client
Composer 安装命令:
composer require alifcapital/lumen-user-service-client
包简介
Lumen client for https://github.com/alifcapital/alifcore-service-user
README 文档
README
User Client 0.1 for Lumen 8
Installation
add this lines to composer.json file:
composer require alifcapital/alifcore-service-user-client-lumen
add this line in Register Service Providers section (bootstrap/app.php):
$app->register(AlifCapital\UserServiceClient\ServiceProvider::class);
add routeMiddleware (bootstrap\app.php):
$app->routeMiddleware([ 'auth' => App\Http\Middleware\Authenticate::class, 'role' => AlifCapital\UserServiceClient\Http\Middleware\RoleMiddleware::class ]);
Configuration
- Run
php artisan user_client:publish-configto publish configs (config/user_client.php)
add this line in Register configure section (bootstrap/app.php):
$app->configure('user_client');
add this line in Environments (.env):
USER_CLIENT_SERVICE_NAME=alif-shop-settings #(every service had unique service_name) USER_SERVICE_BASE_URL={url}/service_user #(URL of user service) USER_CLIENT_PUBLIC_KEY_TTL=60 #CACHE IN SECOUNDS
migrate:
php artisan migrate
统计信息
- 总下载量: 7.35k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-08-16