浏览器里的 route () 函数运行结果与 tinker 中的不一致?
由于电脑内存小,开多了应用非常卡顿,所以将homestead里面的应用移植到了本机,也配置了域名解析,域名为larashop.com
修改.env
的配置APP_URL=http://larashop.com
当访问相关页面时来解析代码route('products.show', $product->id)
blade模板解析出来是 http://localhost:8001/products/1
tinker中解析出来是 http://larashop.com/products/1
我尝试过清除配置和视图之类的缓存,但是都不解决问题,不知道是不是我漏了什么,请大神指点下!
推荐文章: