See all answers here and look at links given https://laracasts.com/discuss/channels/laravel/complex-query-for-a-report
Jul 18, 2017
1
Level 6
Sales reports
Hey everyone, I'm working on a simple little setup whereby a user is charged for a product using Stripe.
Their successful payment is store in the db including their user id, product id, stripe id, amount and the date.
I'm now looking into generating a dashboard view that would show revenue over time.
What would be the best approach to build the actual reports? I'm aware of https://laracasts.com/lessons/reports-and-graphs but that speaks more to the frontend aspect of things, rather than actually building the report data feed.
Any pointers welcome.
Thanks, Steven
Please or to participate in this conversation.