使用Laravel框架,怎么通过访问/xxxx/ooo.php也通过路由来使用

路由只能xxxx/xxxx,但是我想问问,不使用原始的还是通过框架来编写.php这种,请问各位大佬有什么方法么,我查了百度,没有发现。就是访问xxxx/xxx.php也通过框架编写,类似于路由

Ro- W ^ 3 w V pute::get('/test.php', [IndexController::class, 'test']);

这样写访问xxx.com/test.php不会跳转路由,我不知道怎么写,或者路由支持这样吗

回答