laravel group by created at date only

Solutions on MaxInterview for laravel group by created at date only by the best coders in the world

showing results for - "laravel group by created at date only"
Isabella
02 Jul 2020
1//Laravel ⛳
2
3DB::table('table_name')
4  ->select('*',DB::raw('DATE(created_at) as date'))
5  ->get()->groupBy('date');