Package Data | |
---|---|
Maintainer Username: | alifcapital |
Maintainer Contact: | husaynov888@gmail.com (Mehrubon Khusaynov) |
Package Create Date: | 2021-08-13 |
Package Last Update: | 2022-03-30 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2025-01-31 03:08:09 |
Package Statistics | |
---|---|
Total Downloads: | 7,079 |
Monthly Downloads: | 21 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 5 |
Total Forks: | 0 |
Total Open Issues: | 0 |
User Client 0.1 for Lumen 8
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
]);
php artisan user_client:publish-config
to 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