teepluss / laravel-theme

Theme and asset managing for laravel
MIT License
546 stars 132 forks source link

Theme asset showing only public #146

Closed gwiwoloku closed 7 years ago

gwiwoloku commented 7 years ago

I am trying to display an asset but the response is showing only as /public

                `<img class="profile-img" src="{{ Theme::asset()->url('/img/main-logo.png') }}"`

is coming back as

/public/themes/template/assets//img/main-logo.png and not as /themes/template/assets//img/main-logo.png

Any suggestion or help?

Thanks

gwiwoloku commented 7 years ago

Theme::asset()->absurl('') solved the issue!