laravel count data wise

Solutions on MaxInterview for laravel count data wise by the best coders in the world

showing results for - "laravel count data wise"
Nicole
10 Sep 2019
1    $usersData = User::select(DB::raw('DATE(created_at) as date'), DB::raw('count(*) as total'))
2            ->groupBy('date')
3            ->orderBy('date', 'desc')
4            ->take(7)
5            ->get();