【发布时间】:2022-01-05 08:16:20
【问题描述】:
我正在 laravel 上开发子域系统。
假设我的主域名是:test.test
我的子域名是:subdomain.test.test
现在,问题是,当我在子域刀片文件中使用主域路由时:
<a href="{{route('profile')}}">Profile</a>
然后,它应该生成像test.test/profile 这样的链接
但是,它会生成带有子域的链接,例如:subdomain.test.test/profile
现在,我该如何解决这个问题?
【问题讨论】: