marcelgwerder / laravel-api-handler

Package providing helper functions for a Laravel REST-API
Other
152 stars 45 forks source link

Correct meta counts for builders with groups #31

Closed cyrilwanner closed 7 years ago

cyrilwanner commented 7 years ago

When using meta-total-count or meta-filter-count with a builder containing a groupBy statement, the counts are inaccurate as the laravel count() method does not count the total results but the results for each group and returns only the first group.