dimanche 5 juin 2016

Count with Condition in laravel Eloquent

I want to count users who have stripe_plan = platinum_monthly

$platinum=User::count('stripe_plan','platinum_monthly');

But its returning all users who have selected any available plan how to solve this issue need help?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire