Nov 22, 2021
0
Level 6
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.
Please or to participate in this conversation.