The getCountForPagination()
function from laravel crashes when the queries have a HAVING
clause in them.
Basically what it happens is that function removes everything from the select and adds a COUNT(*)
and the HAVING
clause does not see the aliases anymore.
Is there any workaround for this ?