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