Laracast post that include the problem which is solved by this repo.
https://laracasts.com/discuss/channels/laravel/group-by-month-and-company-sum-count
Solution for a complex query related problem asked in Laracasts
PHP
https://laracasts.com/discuss/channels/laravel/group-by-month-and-company-sum-count