Download the PHP package tuanha/auth-api-gateway without Composer
On this page you can find all versions of the php package tuanha/auth-api-gateway. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package auth-api-gateway
Auth-Redis
Sau khi tải package về. Cần thực hiện các bước sau để có thể sử dụng:
Cấu hình file env cho trùng với server Redis của Server Auth
VD:
BROADCAST_DRIVER=log
CACHE_DRIVER=file
QUEUE_CONNECTION=sync
SESSION_DRIVER=redis
SESSION_LIFETIME=1200
-
CACHE_PREFIX=LONGND
REDIS_CLIENT=predis
REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379
Sửa các file config cho phù hợp:
- Thêm vào providers trong file app.php :
ViralMS\AuthApiGateway\AuthApiGatewayServiceProvider::class,
- Ẩn dòng trong file database:
'prefix' => env('REDIS_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_database_'),
Chạy publish vendor:
- chạy command:
php artisan vendor:publish --provider=ViralMS\AuthApiGateway\AuthApiGatewayServiceProvider
Thay thế middleware Auth trong file Kernel.php ở biến $routeMiddleware:
'auth' => \ViralMS\AuthApiGateway\AuthenticateRedis::class,
'guest' => \ViralMS\AuthApiGateway\RedirectIfAuthenticatedRedis::class,
All versions of auth-api-gateway with dependencies
PHP Build Version
Package Version
The package tuanha/auth-api-gateway contains the following files
Loading the files please wait ....