i have an api that will return JWT Token https://i.stack.imgur.com/qWr85.png
how do i take the data using laravel controller, i've tried using GuzzleHttp\Client
$client = new Client();
$url = 'http://127.0.0.1:8000/api/login';
$response = $client->request('GET', $url, [
'query' => [
'username' => $request->username,
'password' => $request->password,
],
]);
And this is the result https://i.stack.imgur.com/PZfe0.png and this if i tried to dd the $response body https://i.stack.imgur.com/KQTjG.png
$response->getBody()->getContents()
– bhucho