标签:get func log erb ble div 数据 nod ret
在laravel中,查询数据库后,返回的对象,可以用下面的办法变为数组
$nodes = Db::table(‘system_node‘)->orderBy(‘sort‘, ‘asc‘)->orderBy(‘id‘ ,‘asc‘)->get()->map(function ($value) { return (array)$value; })->toArray();
标签:get func log erb ble div 数据 nod ret
原文地址:http://www.cnblogs.com/ouzhenzhou/p/7233956.html