tp5.1.7 路由无效

浏览:1831 发布日期:2018/03/31 分类:求助交流
路由规则未达到实际效果,不知道是我的规则哪里写错误吗?5.1.5这样都是可以的,刚升级到5.1.7就出问题了。Route::group('ico', function () {
    Route::rule('download', 'index/ico/download') -> method('GET');
    Route::rule('/', 'index/ico/index') -> method('GET|POST');
})->ext('html');
需要的效果
1、/ico.html
2、/ico/download.html
实际生成
1、/index/ico/index.html
2、/index/ico/download.html
最佳答案
评论( 相关
后面还有条评论,点击查看>>