I have a laravel 5 app and i am making a post request in this way
$client = new Client(); //GuzzleHttp\Client
$result = $client->post('http://example.com/http_hook/meteor.php', [
'form_params' => [
'phone' => '380720011000'
]
]);
i am receiving the post request this way
<?php
$post = file_get_contents('php://input');
$phone = $post['phone'];
How can i consume the post data from laravel? Code for receiving isn't working and throws no error.