F
Filament8mo 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
DomThomas8mo ago
Do you have something in the route file ?
yoni
yoniOP8mo 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 Koch8mo ago
There shouldn’t be a public in the url. The document root should point to public
yoni
yoniOP8mo ago
How can i fix this with a htacces file?
DomThomas
DomThomas8mo ago
Do you are on a private server ?
yoni
yoniOP8mo ago
Shared test hosting.
Dennis Koch
Dennis Koch8mo ago
You probably can’t. Shared hosting is not a good option for Laravel.
DomThomas
DomThomas8mo ago
indeed, I think it's the problem here.
pythonista
pythonista8mo 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 Koch8mo ago
Is your document root at Public and did you restart Apache?
pythonista
pythonista8mo ago
Yes the document root is at public and I did restart the Apache
Dennis Koch
Dennis Koch8mo ago
I don’t know then, sorry.
ciberelfo
ciberelfo8mo 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.
Want results from more Discord servers?
Add your server