使用无状态的中间件添加简单认证以保护路由
github.com/ifgiovanni/logv-middleware-auth
源代码
问题
安装: 592
依赖项: 0
建议者: 0
安全: 0
星标: 0
关注者: 1
分支: 0
开放问题: 0
Requires
Requires (Dev)
None
Suggests
Provides
Conflicts
Replaces
MIT d3c233f52e2183a372e81a9495ea66cc3fc32446
middlewareauthlog-viewer
This package is auto-updated.
Last update: 2024-09-27 01:15:58 UTC
在config/app.php中添加提供者
配置
Ifgiovanni\LogVMiddlewareAuth\Providers\LogVAuthRouteProvider::class
.env
ARCANEDEV_LOGVIEWER_MIDDLEWARE=log.viewer.auth LOG_VIEWER_USER=YOUR_USER LOG_VIEWER_PASSWORD=YOUR_PASSWORD
然后
YOUR_APP/log-viewer/login