F
Filament3mo ago
yoni

The POST method is not supported for route admin/login. Supported methods: GET, HEAD.

Hi, I have this problem when i want to login.
No description
13 Replies
DomThomas
DomThomas3mo ago
Do you have something in the route file ?
yoni
yoni3mo ago
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.
Dennis Koch
Dennis Koch3mo ago
There shouldn’t be a public in the url. The document root should point to public
yoni
yoni3mo ago
How can i fix this with a htacces file?
DomThomas
DomThomas3mo ago
Do you are on a private server ?
yoni
yoni3mo ago
Shared test hosting.
Dennis Koch
Dennis Koch3mo ago
You probably can’t. Shared hosting is not a good option for Laravel.
DomThomas
DomThomas2mo ago
indeed, I think it's the problem here.
pythonista
pythonista2mo ago
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
Dennis Koch
Dennis Koch2mo ago
Is your document root at Public and did you restart Apache?
pythonista
pythonista2mo ago
Yes the document root is at public and I did restart the Apache
Dennis Koch
Dennis Koch2mo ago
I don’t know then, sorry.
ciberelfo
ciberelfo2mo ago
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.