Getting Null When Posting Data Using Guzzle Client In Laravel

[Solved] Getting Null When Posting Data Using Guzzle Client In Laravel | Php Frameworks Drupal - Code Explorer | yomemimo.com
Question : laravel http guzzle null

Answered by : hirohito

maybe your client API is returning HTML string, not json.
this is the validation to check if response body is html string:
preg_match('/<([a-z][a-z0-9]*)\b[^>]*>(.*?)<\/\1>/si', $response->body());

Source : | Last Update : Wed, 18 Oct 23

Answers related to getting null when posting data using guzzle client in laravel

Code Explorer Popular Question For Php Frameworks Drupal