I.Jokhadze
I.Jokhadze

Reputation: 477

Laravel css is accessible but browsers not loading it

When i try to run my app locally css and other static files is accessible but browser don't load them. enter image description here

<link href="{{ URL::asset('assets/css/core.css') }}" rel="stylesheet" type="text/css">

Upvotes: 1

Views: 1033

Answers (2)

Dani Banai
Dani Banai

Reputation: 1140

instead of

{{ URL::asset('assets/css/core.css') }}

replace with:

 {{ url('/assets/css/core.css') }}

Upvotes: 1

just_chris
just_chris

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

Related Questions