How to Use MySQL CTE in Laravel to Group by Year and Month with Gaps
Following up on my previous article on grouping data using MySQL Common Table Expressions, I am offering an implementation of the same technique in Laravel.
Note This requires MySQL v8.0+....