App\Repositories\Lead\LeadRepository::createdLeadsMonthly PHP 메소드

createdLeadsMonthly() 공개 메소드

public createdLeadsMonthly ( )
    public function createdLeadsMonthly()
    {
        return DB::table('leads')->select(DB::raw('count(*) as month, updated_at'))->where('status', 2)->groupBy(DB::raw('YEAR(updated_at), MONTH(updated_at)'))->get();
    }