/laravel-pagination-with-havings

Makes it possible to use pagination with havings in queries with Laravel.

Primary LanguagePHPMIT LicenseMIT

Laravel Pagination with Havings

This package is not needed anymore from Laravel 7.10.0 and up. This is fixed by Taylor Otwell with this PR: laravel/framework#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

MIT

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.


JustBetter logo