Reputation: 477
When i try to run my app locally css and other static files is accessible but browser don't load them.
<link href="{{ URL::asset('assets/css/core.css') }}" rel="stylesheet" type="text/css">
Upvotes: 1
Views: 1033
Reputation: 1140
instead of
{{ URL::asset('assets/css/core.css') }}
replace with:
{{ url('/assets/css/core.css') }}
Upvotes: 1
Reputation: 154
Try:
<link rel="stylesheet" type="text/css" href="{{ asset('assets/css/core.css') }}"/>
Note I have dropped the 'URL' at the beginning of asset, I am assuming you have your URL in your .ENV and it might not be pointing to your localhost.
It's easier to just drop the URL, it wont cause you issues moving forward.
Upvotes: 0