【发布时间】:2021-04-05 09:11:27
【问题描述】:
版本 Laravel 框架 7.21.0
我在网址中允许使用双斜杠时遇到问题。
成功:http://example.com/api/v1/reference
未找到异常:http://example.com//api/v1/reference
如何在我的网址中允许双斜杠?
我设法在以前版本的 Laravel 的 url 中允许多个斜杠:5.8.16
【问题讨论】:
-
我认为你应该从
api.php中删除 '/' 从/api/v1/reference到api/v1/reference