这段代码完美地连接到API,我想在刀片表单上回显这个API上的数据,我该怎么做?
public function create()
{
$guzzle = new Client([
'base_uri' => 'http://127.0.0.1:8800/dialects/',
'headers' => [
'Accept' => 'application/json; charset=utf-8',
'type' => 'GET',
'crossDomain' => true,
'dataType' => 'jsonp'
]
]);
}