$header = ['Content-Type' => 'application/json'];
        $response = Response::create(json_encode($newarr), '', 200, $header);
        return $response;

快捷键:shuchujson

源:

sublime_text格式

<snippet>
    <content><![CDATA[
\$header = ['Content-Type' => 'application/json'];
        \$response = Response::create(json_encode(\$newarr), '', 200, \$header);
        return \$response;
]]></content>
   <tabTrigger>shuchujson(fastadmin输出json结果)</tabTrigger>
   <scope></scope>
</snippet>
点赞(0)

评论列表 共有 0 条评论

暂无评论
立即
投稿
发表
评论
返回
顶部