-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
回调函数里针对不同控制器和方法定制生成key? #13
Comments
这部分是让中间件能自动替换成具体的控制器名称的。但受于中间件机制的限制,一般情况下获取不到,需要在路由中间件是才获取得到。路由中间件的使用可见:https://www.kancloud.cn/manual/thinkphp6_0/1037493 |
'key' => 'CONTROLLER/ACTION/IP', |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
'key' => 'CONTROLLER/ACTION/IP',
PS:此示例需要本中间件在路由中间件后启用。在路由中间件之后启用是什么意思?
The text was updated successfully, but these errors were encountered: