The issue could be related to the web server configuration. It's possible that the web server is not configured to allow POST or PUT requests to reach the Laravel application.
One solution could be to check the web server configuration and ensure that it allows all HTTP methods to reach the Laravel application.
Another solution could be to try using a different web server, such as Nginx, to see if the issue persists.
If the issue persists, it could be helpful to provide more information about the web server and any error messages that are being received.
Example code for allowing all HTTP methods in Nginx configuration:
location / {
try_files $uri $uri/ /index.php?$query_string;
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, DELETE, OPTIONS';
add_header 'Access-Control-Allow-Headers' 'Authorization, Content-Type';
}