The POST method is not supported for route admin/login. Supported methods: GET, HEAD.
Hi, I have this problem when i want to login.
13 Replies
Do you have something in the route file ?
Yes, it works fine on my local environment, but I want to test it on a production server. However, when I try it on the production suite, I encounter the following issue.
But an other problem is domain.com/public/admin.
There shouldn’t be a
public
in the url. The document root should point to publicHow can i fix this with a htacces file?
Do you are on a private server ?
Shared test hosting.
You probably can’t. Shared hosting is not a good option for Laravel.
indeed, I think it's the problem here.
I'm running mine on vps and it doesn't work without /public and I have configured document root on apache config. what am i doing wrong
Is your document root at Public and did you restart Apache?
Yes the document root is at public and I did restart the Apache
I don’t know then, sorry.
https://livewire.laravel.com/docs/installation#configuring-livewires-update-endpoint check this section in case it can help you, I also had problems with livewire with a localhost alias
Laravel
Installation | Laravel
A full-stack framework for Laravel that takes the pain out of building dynamic UIs.