nWidart / laravel-modules

Module Management In Laravel
https://docs.laravelmodules.com
MIT License
5.5k stars 954 forks source link

Doesn't work correctly asset() #1857

Closed StrangerGithuber closed 4 months ago

StrangerGithuber commented 4 months ago

Hi, I am trying to use this code in one of the module blade:

{{ asset('assets/img/bar.png') }}

However in the webbrowser I get like this: image

When I click to Edit HTML in the webbrowser then I get like this:

<div class="bannerimg cover-image" style="background: url(" https:="" help.network="" assets="" img="" bar.png")="" center="" center;"="">

So the url is messed up. What can be the problem? Is it a bug or I am doing wrong something? The image which I am trying to render is in the main laravel path, it is not in the module.

Thanks in advance for the answers.