阅读(2057)
赞(3)
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');
Copyright©2023 字节宝字节宝| |
违法和不良信息举报电话:|举报邮箱:3111859717@qq.com
