I am using fontawesome in my laravel project, the problem is that it will not display if I use it in local without using CDN.
<link href="{{ URL::asset('css/font-awesome.min.css') }}" rel='stylesheet' type='text/css'>
NetworkError: 404 Not Found - http://localhost/mysite/fonts/fontawesome-webfont.woff2?v=4.6.3"
"NetworkError: 404 Not Found - http://localhost/mysite/fonts/fontawesome-webfont.woff?v=4.6.3"
NetworkError: 404 Not Found - http://localhost/mysite/fonts/fontawesome-webfont.ttf?v=4.6.3
here is my fullpath of font-awesome.min.css
C:\wamp\www\mysite\public\css\
Thank you in advance.
This is because you are using the URL helpers incorrectly.
If
font-awesome.min.css
is insidepublic/css
then you want to be referencing it just using theasset()
helper - you do not need to add theURL
facade too.So just tweak your
<link>
tag a little like so: