Laravel 8 Guzzle 配置

2021-07-19 10:43 更新

你可以使用 withOptions 方法來指定額外的 Guzzle 請求配置。withOptions 接受數(shù)組形式的鍵值對:

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


以上內(nèi)容是否對您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號
微信公眾號

編程獅公眾號