By Alex John
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
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hello,
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.
Regards, Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.