404 errror and Post request to livewire/update
Hi , I have an issue when i try to login to my admin panel. I get a 404 error and when i check on my network tab a post request is sent to /livewire/update which give 404 error. how can i solve this issue. I am using vps server but on my local it work perfect.
13 Replies
Fix the /livewire/livewire.js 404 not found error
Learn how to fix the 404 not found error occurring for /livewire/livewire.js.
how did you solve @pythonista
?
Sounds like some server misconfiguration
I'm running apllication on my local env
I did update Login Action
seems like Auth::attempt($this->getCredentialsFromFormData($data), $data['remember'] ?? false) also throwing the error
@Dennis Koch
So does everything work without this change?
no
getting error
Then it's likely not your change.
why
http://localhost:8000/livewire/update
failing?I debug the app
fireLoginEvent creating the issue
$this->events?->dispatch(new Login($this->name, $user, $remember));
I changed the livewire update endpoint by registering new endpoint using Livewire::setUpdateRoute() and now it working
Laravel
Installation | Laravel
A full-stack framework for Laravel that takes the pain out of building dynamic UIs.