5.1.39文档中间件的重定向跳转路径问题

浏览:551 发布日期:2020/04/03 分类:求助交流 关键字: tp5.1 中间件
各位大佬,
我这边按照命令生成 php think make:middleware Check 。
添加handle方法的内容为
if ($request->param('name') == 'think') {
return redirect('index/think');
}

return $next($request);

访问:http://tp51.com/index/index/index?name=think 不会跳转,还是访问的index操作。
是需要别的配置吗?

最佳答案
评论( 相关
后面还有条评论,点击查看>>