Here is my code
$client = new Client(); // GuzzleHttp\Client
$result = $client->post('http://localhost:8000/api/login', [
'form_params' => [
'email' => '100@hello.com',
'password'=>'secret',
'device_token'=>'SAM-12-890'
]
]);
echo $result->getStatusCode();
But in response I got nothing after few seconds and My laravel instance's port acquired by another process in ubuntu machine.
So how to initiate internal post request by guzzle in laravel? is my url malformed?
/api/login
url? Can you post the function that gets hitted by the route. – PaladiN