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