阅读(2065) (5)

Laravel 8 Guzzle 配置

2021-07-05 10:24:27 更新

你可以使用 withOptions 方法来指定额外的 Guzzle 请求配置withOptions 接受数组形式的键值对:

$response = Http::withOptions([
    'debug' => true,
])->get('http://test.com/users');