苏苏太穷了
2020-09-18 20:22使用Laravel框架,怎么通过访问/xxxx/ooo.php也通过路由来使用
路由只能xxxx/xxxx,但是我想问问,不使用原始的还是通过框架来编写.php这种,请问各位大佬有什么方法么,我查了百度,没有发现。就是访问xxxx/xxx.php也通过框架编写,类似于路由
Route::get('/test.php', [IndexController::class, 'test']);
这样写访问xxx.com/test.php不会跳转路由,我不知道怎么写,或者路由支持这样吗
- 点赞
- 回答
- 收藏
- 复制链接分享
1条回答
为你推荐
- 使用Laravel框架,怎么通过访问/xxxx/ooo.php也通过路由来使用
- laravel
- php
- 1个回答