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

createdLeadsMonthly() public method

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