在 Laravel 中从 localhost 转移到 127 服务器

问题描述

我在 localhost 中设计我的页面,它工作正常,并且我包含了我所有的路径

<link href="{{ asset('public/'.Config::get('config.template_assets').'assets/vendor/bootstrap/css/bootstrap.min.css')}}" rel="stylesheet"> 

但是当我运行我的 PHP artisan serve bootstrap 时不包括 404 错误,这意味着我的服务器找不到 bootstrap 的位置,所以我应该如何更改我的路径以使其兼容 localhost 和 127服务器。如果我从路径中删除 public 它工作正常

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)