justbetter / laravel-pagination-with-havings
Makes it possible to use pagination with havings in queries.
Installs: 137 976
Dependents: 2
Suggesters: 0
Security: 0
Stars: 66
Watchers: 5
Forks: 9
Open Issues: 0
Requires
- php: >=7.0
- laravel/framework: ~5.5.0|~5.6.0|~5.7.0|~5.8.0|^6.0|^7.0
README
This package is not needed anymore from Laravel 7.10.0 and up. This is fixed by Taylor Otwell with this PR: https://github.com/laravel/framework/pull/32624
This Laravel 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:
Installation
composer require justbetter/laravel-pagination-with-havings
Usage
Just use the trait on the model.
Example
use JustBetter\PaginationWithHavings\PaginationWithHavings;
class MyModel extends Eloquent
{
use PaginationWithHavings;
...
}
Ideas, bugs or suggestions?
Please create a issue or a pull request.
License
About us
We’re a innovative development agency from The Netherlands building awesome websites, webshops and web applications with Laravel and Magento. Check out our website justbetter.nl and our open source projects.