AdalbertoHofmann
Filament Laravel with front React
here a link with the same problem
https://laracasts.com/discuss/channels/filament/filament-in-subdirectory
3 replies
Filament Laravel with front React
heres the solution
by adding: APP_ASSETSURL="" at .env and on my web.php
Livewire::setScriptRoute(function($handle) {
return Route::get(config('app.assetsUrl') . '/livewire/livewire.js', $handle);
});
Livewire::setUpdateRoute(function($handle) {
return Route::get(config('app.assetsUrl') . '/livewire/update', $handle);
});
this creates
GET|HEAD _/livewire/livewire.js ............ Livewire\Mechanisms › FrontendAssets@returnJavaScriptAsFile
GET|HEAD _/livewire/update ............ livewire.update › Livewire\Mechanisms › HandleRequests@handleUpdate
3 replies