Friday, March 3, 2017

Linking a CSS image URL in laravel

I want to add a background-image with a laravel URL. I can do this by just including the web path itself but I would like to use Laravel URL.

Here is how I do it now:

.mystyle{
background-image: url("www.myproject.com/assets/img/background.png")
}

Here is how I want it:

.mystyle{
background-image: url("") 
}

Any clues?



via prgrm

Advertisement