📜  laravel 仅按 created_at 日期分组 - PHP 代码示例
📅  最后修改于: 2022-03-11 14:54:22.791000             🧑  作者: Mango
代码示例1
//Laravel â³
DB::table('table_name')
->select('*',DB::raw('DATE(created_at) as date'))
->get()->groupBy('date');