在laravel中操作模块的根URL

时间:2015-08-26 05:28:17

标签: laravel laravel-5 laravel-routing

当用户在浏览器上输入users网址时,假设http://localhost/project/users/模块,我想将它们发送到usersController@index。为此,我尝试了路由Route::get('users/', 'usersController@index');,但这会发送到xampp的主页。路由http://localhost/project/users/indexhttp://localhost/project/users没有问题,但我也希望将用户路由到http://localhost/project/users/。我如何实现这一目标?

0 个答案:

没有答案