Route::group('aaa',[
'show-:id' => 'video/show/index',
])->ext('html')->append(['moduleid'=>18]);
Route::group('bbb',[
'show-:id' => 'video/show/index',
])->ext('html')->append(['moduleid'=>19]);定义了2个路由,两个虚拟模块名映射到同一控制器。现在访问aaa和bbb模块生成出的url都是: http://www.xxx.com/aaa/show-1234.html
希望在访问
aaa模块下生成的url为 http://www.xxx.com/aaa/show-1234.html
bbb模块下生产的url为 http://www.xxx.com/bbb/show-1234.html
最佳答案