我用于分组控制器路线和使用该URL
之后限定的Route
:控制器路由的Laravel通配符?
http://localhost/alachiq/public/admin/profile
它可以显示轮廓图。但是,如果用户输入:
http://localhost/alachiq/public/admin/profile/
重定向到http://localhost/admin/profile
,我得到这个错误:
Not Found
The requested URL /admin/profile was not found on this server.
Apache/2.4.6 (Debian) Server at localhost Port 80
如何在控制器中使用通配符?
我的路线:
Route::group(array('prefix'=> 'admin' ,'before'=>'auth'), function(){
Route::controller('profile', 'ProfileController',array('getIndex'=>'profile.index', 'postUpdate'=>'profile.update'));
});
感谢,但我想重定向到'管理/配置文件' –