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

completedLeadsMonthly() public method

    public function completedLeadsMonthly()
    {
        return DB::table('leads')->select(DB::raw('count(*) as month, created_at'))->groupBy(DB::raw('YEAR(created_at), MONTH(created_at)'))->get();
    }