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

ParthiBarath's avatar

Trying to configuring the update endpoint and asset url instructed in livewire v3.6.4

i trying to configuring the update endpoint and asset url instructed in livewire v3.6.4 installation page instructions

Livewire::setUpdateRoute(function ($handle) { return Route::post('/filament/demo/public/livewire/update', $handle); }); Livewire::setScriptRoute(function ($handle) { return Route::get('/filament/demo/public/livewire/livewire.js', $handle); });

In browser dev tool element inspect:

the data-update-uri not update so if i try login in filament panel it show Not Found page popup

if do php artisan route:list

GET|HEAD filament/demo/public/livewire/livewire.js .................. Livewire\Mechanisms › FrontendAssets@returnJavaScriptAsFile POST filament/demo/public/livewire/update ............... livewire.update › Livewire\Mechanisms › HandleRequests@handleUpdate

GET|HEAD livewire/livewire.js ....................................... Livewire\Mechanisms › FrontendAssets@returnJavaScriptAsFile POST livewire/update .................................... livewire.update › Livewire\Mechanisms › HandleRequests@handleUpdate

it shows these routes

please help me how to fix this...

0 likes
1 reply
gotham337's avatar

Hey ParthiBarath! 👋

It looks like the issue is that you’re including the full public path in the route, which Livewire doesn’t expect. Livewire automatically handles its URLs relative to your app’s base path, so you usually don’t need /public in the route.

Try updating your routes like this:

Livewire::setUpdateRoute(fn($handle) => Route::post('/livewire/update', $handle)); Livewire::setScriptRoute(fn($handle) => Route::get('/livewire/livewire.js', $handle));

Then clear route cache just to be safe:

php artisan route:clear php artisan cache:clear

After that, refresh the page and check data-update-uri—it should point correctly now.

Basically, remove /filament/demo/public from your Livewire route definitions and let Laravel handle the base path.

Please or to participate in this conversation.