Getting "The POST method is not supported for route admin/login. Supported methods: GET, HEAD." after deploying my Filament app #11481
Replies: 16 comments 30 replies
-
Can you see the login page? |
Beta Was this translation helpful? Give feedback.
-
try this |
Beta Was this translation helpful? Give feedback.
-
Hi, I have same issue too.. |
Beta Was this translation helpful? Give feedback.
-
Tested this on new install (laravel 10.10, filament v3) with the same issue - password not obscured and no POST method. ...I set all my repos to auto update to minor version too and I can't login to any of them now. Edit: note, im using codespace on php:8.2.14-cli-bookworm. |
Beta Was this translation helpful? Give feedback.
-
Having the same issue with laravel 10.48 and filament 3.2. Everything works correctly when Running |
Beta Was this translation helpful? Give feedback.
-
anyone can help? |
Beta Was this translation helpful? Give feedback.
-
After some digging it seems |
Beta Was this translation helpful? Give feedback.
-
Same problem here running on latest laravel 11 (sail + php 8.3 + octane) in conjunction with filament v3.2.69 and internachi modules v2.2.0. The login form looks strange - the password field shows only plaintext and the spinner on the submit button rotates permanently. No errors in the browser console tab, network tab looks also good. After pressing the submit button, the form gets sent via POST, resulting in the known error message. Looks like livewire/alpine is not working correctly somehow. EDIT: Solved. It was my own fault as I disabled the automatic livewire asset injection before I started playing with filament. After reverting the livewire config back to "inject_assets = true" it works as expected. |
Beta Was this translation helpful? Give feedback.
-
Idk if it helps, but I am getting this error using Safari. Using other browsers like chrome did not trigger the issue. |
Beta Was this translation helpful? Give feedback.
-
https://t.me/filament_community
Please come on
Telegram official group
…On Sat, May 11, 2024, 2:00 PM rohansn28 ***@***.***> wrote:
Hello @gagelafleur <https://github.com/gagelafleur>,
i just face the same issue in my project and looking for answer. I have
same problem like yours when i pushed my laravel project on server and now
not able to login, getting 404 page error.
tried this also php artisan vendor:publish --force --tag=livewire:assets
but not fixing problem, can you share your solution if you find any. it
wolud be very helpful since im new to laravel filament
—
Reply to this email directly, view it on GitHub
<#11481 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALVXJJF54EVIEE3TCXR227DZBXFZVAVCNFSM6AAAAABDPSOBMGVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TGOJTGQ3TS>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I have the same problem, has anyone already found the solution? |
Beta Was this translation helpful? Give feedback.
-
I believe this is a livewire path issue. I had the same issue, then I realised that livewire.js was not loaded. Livewire.js loads from /vendor/livewire/livewire.js. This could be a problem if you're hosting in a sub-directory (like https://domain.com/development/project). Solution 1: Solution 2: |
Beta Was this translation helpful? Give feedback.
-
you can fix that by changing the inject_assets to true in livewire.php config file artisan vendor:publish --force --tag=livewire:assets |
Beta Was this translation helpful? Give feedback.
-
In my case the problem was |
Beta Was this translation helpful? Give feedback.
-
Package
Panel builder
Package Version
v3.0.0
How can we help you?
I've recently deployed my Filament application to a server, but I'm encountering an error message stating 'The POST method is not supported for route admin/login. Supported methods: GET, HEAD.' This issue seems to occur only on the server, as the application functions correctly in my local development environment. I've verified that the 'admin/login' route exists and is configured correctly in my routes file, and I've confirmed that the form method is set to 'POST'. Despite these checks, the error persists. I'm seeking assistance from the community to troubleshoot and resolve this issue. Any insights or suggestions would be greatly appreciated. Thank you in advance for your help!
Beta Was this translation helpful? Give feedback.
All reactions