Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
你知道 Laravel 是区分大小写的。如何强制用户在地址栏中使用小写字母?我可以更改中间件中的 Uri 吗?如何 ?我正在使用 Laravel 5.1.10
您不能强制用户在地址栏中使用小写或大写。但你要记住这一点。区分大小写或不区分大小写实际上取决于服务器及其环境。
一般来说,Windows 机器不区分大小写,而 Linux 则区分大小写。小写是要走的路,否则你会像狗追尾巴一样追虫子。
希望这有帮助。