Get cumulative users by week

Posted 1 month ago by Mick79

Hi, I'm having trouble getting my head around writing something in Laravel to produce cumulative user numbers.


Week 1 : 10 users
Week 2 : 8 users
Week 3: 22 users

I'd like to return an array that had

Week 1 : 10 users
Week 2 : 18 users
Week 3 : 40 users

Please sign in or create an account to participate in this conversation.

Laracasts Mascot

Hi, Have We Met Yet?

Did you know that, in addition to the forum, Laracasts includes well over 1000 lessons on modern web development? All for the price of one lunch out per month.

Sign Me Up


Reply to

Use Markdown with GitHub-flavored code blocks.