Reputation: 22489
I am new to Laravel
. I want to add a CSS file in my Laravel
project for my template. ın my project directory, I added a folder assets
, and inside is assets/css/style.css
Now I am trying to apply it using {{asset('assets/css/style.css')}}
but when I try to access http://localhost:8000/assets/css/style.css
I got an error of:
Sorry, the page you are looking for could not be found. 1/1 NotFoundHttpException in compiled.php line 8867:
Does anyone have an idea for this?
Upvotes: 0
Views: 216
Reputation: 880
hello please add your css like this.
{!! Html::style('assets/css/style.css') !!}
Upvotes: 1