Issue
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("{{ URL::asset('assets/img/background.png }}")
}
Any clues?
Solution
You can even use it like this:
.mystyle{
background-image: url("/assets/img/background.png")
}
Answered By - Onix
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.