I can'understand how can I do so Please help me to find a solution
$response = $client->request('POST', '/api/profile_update', [
'headers' => [
'Authorization' => 'Bearer '.$token,
'Accept' => 'application/json',
],
]);
return $response;
I used something like this in api.php
file
now what can i do in controller
file.