我已经安装了 Laravel5.3 并安装了 Auth 脚手架,然后我去注册
http://localhost/laravel53/public/register
页面很乱,没有正确加载css ans js,在浏览器控制台中我可以看到:
"NetworkError: 404 Not Found - http://localhost/css/app.css" and
"NetworkError: 404 Not Found - http://localhost/js/app.js"
并且在 C:\xampp\htdocs\laravel53\resources\views\layouts\app.blade.php 到 css 文件的链接不正确
<!-- Styles -->
<link href="/css/app.css" rel="stylesheet">
但是当从 href 中删除 / 时,路径变得正确。
现在的问题是:这个是 laravel5.3 中的 bug 还是在不删除 / 的情况下解决这个问题的任何方法