thinkphp5.1 如何查询某个时间段的数据
//今天的数据
//今天的数据
$start_time =strtotime(date('Y-m-d',time())." 00:00:00");
$end_time =strtotime(date('Y-m-d',time())." 23:59:59");
$where[] = ['create_time', 'between time', [$start_time, $end_time]];
User::where($where)->select();