使用Laravel

时间:2016-11-17 12:07:21

标签: json ajax rest laravel-5.3 laravel-blade

这段代码完美地连接到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'
                ]
            ]);
        }

0 个答案:

没有答案