rainlee / think-route-patch
解决ThinkPHP6路由验证器优先于中间件执行的扩展
v1.0.0
2022-05-23 04:13 UTC
Requires
- php: >=7.1
- topthink/framework: ^6.0
This package is not auto-updated.
Last update: 2025-08-12 17:42:12 UTC
README
think-route-patch
介绍
解决 ThinkPHP6 路由验证器优先于中间件执行的解决方案
软件架构
使用 ThinkPHP6.0 的容器的功能绑定自定义的 Route
类库来解决路由验证器优先于路由中间件执行的问题
安装教程
$ composer require rainlee/think-route-patch
使用说明
修改 app
目录下 provider.php
文件,增加键为 think\Route
或 route
值为 \rainlee\route\Route::class
的参数
解决方案详细介绍:https://blog.csdn.net/lihongyu101/article/details/124925559