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 in css:
.toggle.active {
background: url("{{ asset('assets/img/cancel.png')}}");
background-repeat: no-repeat;
background-size: 25px;
background-position: center;
}
but it doesn't work