Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

marian_d_dev's avatar

Laravel deployed on DigitalOcean App Platform converts POST request into GET request

Hi guys, I've deployed a Laravel project on Digital Ocean App Platform (not droplet) and for some reason my POST requests are converted into GET requests. Of course everytime I make a POST request I get an 405 method not allow. The app works fine on local environment. Any idea what could cause this method conversion of the POST request?

Thanks in advance and sorry if I didn't provide enough context.

0 likes
4 replies
vdvcoder's avatar

Are you sure that the routes are defined as "Route::post" ? in your web.php

marian_d_dev's avatar
marian_d_dev
OP
Best Answer
Level 3

100% positive. It's solved now. I didn't explicitly specify HTTPS as protocol for the request URL and I got a 302 status code. When sending POST requests as HTTP and not HTTPS, the 302 redirect converts the POST to a GET.

Receiptify's avatar

Hey there! If your Laravel project is experiencing POST requests being converted to GET on Digital Ocean App Platform, it might be related to the server or routing configuration. Ensure that your routes and web server settings are correctly handling POST requests. Also, check if there are any specific server configurations on App Platform affecting this behavior. Double-checking your routes and the server environment should help troubleshoot the 405 method not allowed issue. If you need more assistance, feel free to provide additional details for further analysis. Receiptify

Please or to participate in this conversation.