public function completedTasksThisMonth() { return DB::table('tasks')->select(DB::raw('count(*) as total, updated_at'))->where('status', 2)->whereBetween('updated_at', array(Carbon::now()->startOfMonth(), Carbon::now()))->get(); }