using laravel on the back end. I'm thinking of fetching the activity table for a particular user, loop through the created_at column and get the current month and count the number of activities for that month.
Is this feasible?
Just have a key for the feature (e.g: number of messages the user can send per month), fetch that with a user profile request and have a cron job that would reset the counter of features every month.
Обсуждают сегодня