justbetter / laravel-pagination-with-havings

Makes it possible to use pagination with havings in queries with Laravel.
MIT License
66 stars 10 forks source link

Use the connection name for the database builder #7

Closed denitsa-md closed 4 years ago

denitsa-md commented 4 years ago

I use a different database connection for a lot of my models which is not my default connection.

So I was getting an error because the countQuery inside BuilderWithPaginationHavingSupport was trying to access my default connection.

This PR fixes that for me.

royduin commented 4 years ago

Thanks!

denitsa-md commented 4 years ago

Thanks for the package @royduin!