1

I am using a template in the css there is the line:

background: url('/images/bg.jpg') 50% 0 no-repeat fixed;

How should I do this in Laravel? The css is in the public directory:

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

1 Answer 1

1

Checkout out the assert helper function

<link href="{{ asset('style.css') }}" rel="stylesheet">
Sign up to request clarification or add additional context in comments.

Comments

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.