I'm migrating from Laravel 8 to Laravel 8 + Octane / Swoole. All works fine, but php://input
always are empty. Also, I check $_POST and $_SERVER values.
file_get_contents('php://input')
is used by AWS SNS Message Validator.
Any alterantive to read php://input
?
PHP code
echo "php://input: ".file_get_contents('php://input');
With PHP-FPM
$ curl -i -X POST --data "dataaaa" https://example.com/aws/sns/webhook
php://input: dataaaa
With Octane+Swoole
$ curl -i -X POST --data "dataaaa" https://example.com/aws/sns/webhook
php://input: