Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

MrMooky's avatar

Livewire and Image not from base path

For a recent project, Laravel + Statamic is located in a subfolder. Due to that fact, some frontend assets are not loading correctly. Anything I open with {{ asset('file.png') }} loads fine and uses the subfolder. But many assets, including Livewire, load from / and I cannot change that.

Is there an elegant way to make this work, so / is not using the root, but the first subfolder? In my htaccess I already have RewriteBase /subfolder/, but that does not fix it.

0 likes
0 replies

Please or to participate in this conversation.