Using file_get_contents('php://input') with POST always returns an empty result
I'm trying to create a PHP REST API using Postgres. I'm adapting this tutorial. For some reason, using file_get_contents("php://input"); in the POST method returns an empty string. ex : $data = file_get_contents("php://input"); var_dump($data); For instance, in Postman, I'm using the…