Based on Laravel Pagination with Havings package
This package makes it possible to use Laravel's pagination with queries which are using havings. Without it you probably get "Column not found" MySQL errors. For more information see:
composer require planetadeleste/oc-pagination-with-havings
Just use the trait on the model.
use PlanetaDelEste\PaginationWithHavings\PaginationWithHavings;
class MyModel extends \Model
{
use PaginationWithHavings;
...
}
Please create a issue or a pull request.
To Roy Duineveld for write the original version for Laravel.