I have the public folder inside my laravel project and I have some js and css files inside it.
我正在使用ASSET函数,即使它引用公共文件夹,我的文件也不会加载到页面上.
我用这段代码加载(这只是一个例子,还有更多文件):
<link href="{{ asset('css/style.css') }}" rel="stylesheet">
在浏览器的控制台上,我得到如下信息:
加载资源失败:服务器响应状态为404(未找到)
Well, I tried to revert the last commit, but no success. Tried to change to URL::asset() function, nothing. Tried everything from the following link: http://laravel.io/forum/09-17-2014-problem-asset-not-point-to-public-folder?page=1 and success.
拜托,帮个忙?
谢谢