App\Repositories\Task\TaskRepository::completedTasksThisMonth PHP 메소드

completedTasksThisMonth() 공개 메소드

    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();
    }