POST api request are redirected to GET request

Posted June 13, 2018 1.1k views
ApacheLAMP StackAPIUbuntu 16.04

I have recently moved my laravel project from a shared hosting to DO. But unfortunately the API’S stoped working.
All POST apis are getting redirected/converted to GET request result in server error or methord exception.

All the api’s were tested and are working fine. This stared when we have migrated to DO.

Can anyone please tell me what could be the issue.

Framework : Laravel 5.6

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer


This is quite interesting. I could suggest checking your Laravel logs for more information:

tail -100 storage/logs/laravel-2019-11-27.log

And also check your Apache access and error logs to make sure that there are no other errors which could be causing this behavior:

tail -100 /var/log/apache2/error.log
tail -100 /var/log/apache2/access.log

Feel free to share the errors here so that I could try to advise further.