App\Repositories\Lead\LeadRepository::completedLeadsThisMonth PHP Method

completedLeadsThisMonth() public method

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