{{-- TallStackUI's writes root-relative URLs ("/tallstackui/script/..."), which 404 when the app runs in a subfolder, as it does locally under XAMPP (/toiminnanohjaus/public). Prefix them with the app's own URL so the assets load in both setups. --}} {!! str_replace( ['"/tallstackui/script/', '"/tallstackui/style/'], ['"'.url('tallstackui/script').'/', '"'.url('tallstackui/style').'/'], \TallStackUi\Facades\TallStackUi::directives()->script(), ) !!}