CSS file in Laravel

Asked

Viewed 67 times

1

I’m starting a new project in Laravel, following the instructions, but I’m having difficulty accessing my project’s css file. It’s saved in the CSS folder, inside the public folder, and I’m calling it in my view like this:

    <link href="{{ asset('css/style.css') }}" rel="stylesheet" type="text/css">

My view is called "home.blade.php". And the path where the CSS file is found is C: xampp htdocs projectonovo public css" I would like any help to solve this, because so far no solution that I have found here has even solved the problem. I thank you already!

1 answer

0

Try it this way:

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

Browser other questions tagged

You are not signed in. Login or sign up in order to post.