阅读(2111)
赞(22)
Laravel 8 Guzzle 配置
2021-07-05 10:24:27 更新
你可以使用 withOptions 方法来指定额外的 Guzzle 请求配置。withOptions 接受数组形式的键值对:
$response = Http::withOptions([
'debug' => true,
])->get('http://test.com/users');
你可以使用 withOptions 方法来指定额外的 Guzzle 请求配置。withOptions 接受数组形式的键值对:
$response = Http::withOptions([
'debug' => true,
])->get('http://test.com/users');