1

I made a long break in programming. Almost half year now. I'm trying to include my style.css file in Laravel but it shows that it can't find it.

<!DOCTYPE html>
<html>
<head>
    <title>Nauja pradžia</title>
    <link rel="stylesheet" href="{{ URL::asset('css/style.css') }}">
</head>
<body>

    <h1 style="color: white">SVEIKAS</h1>

</body>
</html>

Can someone help me why it can't find it ? The file itself is in that directory.

2
  • A half year is not too long, I took 8 years long break from the web development and programming)) Commented Jan 7, 2017 at 10:58
  • 1
    @feknaz you shouldn't delete questions after you got an answer, please appreciate answerer's effort and time. Commented Jan 7, 2017 at 13:32

1 Answer 1

3

Put style.css file into the public/css directory to make it work. Also, you can just use asset() helper:

{{ asset('css/style.css') }}
Sign up to request clarification or add additional context in comments.

1 Comment

Thank you... my bad... I didn't saw the created css directory in public.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.