toJson方法

将集合转换成 JSON 字符串。

$collection = collect(['name' => 'Desk', 'price' => 200]);

$collection->toJson(); // '{"name":"Desk", "price":200}'
Copyright © http://blog.webfsd.com 2018 all right reserved,powered by Gitbook该文件修订时间: 2019-05-21 04:55:26

results matching ""

    No results matching ""