laravel框架查询数据集转为数组

return DB::table('game_matchperiod')->select('starttime')->where('Type',$type)->get()
		->map(function ($value) {return (array)$value;})->toArray();

猜你喜欢

转载自blog.csdn.net/dabao87/article/details/82658734