lundi 30 décembre 2019

How to count revisited customer ( more than 1 time) in laravel using query builder?

I need to count revisited customer in one month. It means need to count customer_id has more than one entry in table within a month.

My query is showing only the total customer.

$count_customer_current_month = DB::table("customer_entry")->whereRaw('MONTH(date) = ?', 
                                [$currentMonth])->count();


from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2QzwgdB
via IFTTT

Aucun commentaire:

Enregistrer un commentaire