PHPackages                             justbetter/laravel-pagination-with-havings - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. justbetter/laravel-pagination-with-havings

AbandonedArchivedLibrary[Utility &amp; Helpers](/categories/utility)

justbetter/laravel-pagination-with-havings
==========================================

Makes it possible to use pagination with havings in queries.

1.4(6y ago)66152.2k—8.3%102MITPHPPHP &gt;=7.0

Since Sep 11Pushed 6y ago4 watchersCompare

[ Source](https://github.com/justbetter/laravel-pagination-with-havings)[ Packagist](https://packagist.org/packages/justbetter/laravel-pagination-with-havings)[ Docs](https://github.com/justbetter/laravel-pagination-with-havings)[ RSS](/packages/justbetter-laravel-pagination-with-havings/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (1)Versions (6)Used By (2)

Laravel Pagination with Havings
===============================

[](#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](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:

- [laravel/framework#3105](https://github.com/laravel/framework/issues/3105)
- [laravel/framework#5515](https://github.com/laravel/framework/pull/5515)

Installation
------------

[](#installation)

```
composer require justbetter/laravel-pagination-with-havings

```

Usage
-----

[](#usage)

Just use the trait on the model.

### Example

[](#example)

```
use JustBetter\PaginationWithHavings\PaginationWithHavings;

class MyModel extends Eloquent
{
    use PaginationWithHavings;

    ...
}

```

Ideas, bugs or suggestions?
---------------------------

[](#ideas-bugs-or-suggestions)

Please create a [issue](https://github.com/justbetter/laravel-pagination-with-havings/issues) or a [pull request](https://github.com/justbetter/laravel-pagination-with-havings/pulls).

License
-------

[](#license)

[MIT](LICENSE.md)

About us
--------

[](#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](https://justbetter.nl) and our [open source projects](https://github.com/justbetter).

---

[![JustBetter logo](https://raw.githubusercontent.com/justbetter/art/master/justbetter-logo.png)](https://justbetter.nl "JustBetter")

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity45

Moderate usage in the ecosystem

Community21

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 78.6% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~137 days

Total

5

Last Release

2258d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2d00b3f55cd4ae8b8cfb001a644ed6c7a1127a956c24375bcfe16ce12bd89bed?d=identicon)[justbetter](/maintainers/justbetter)

---

Top Contributors

[![royduin](https://avatars.githubusercontent.com/u/1703233?v=4)](https://github.com/royduin "royduin (11 commits)")[![billmn](https://avatars.githubusercontent.com/u/779534?v=4)](https://github.com/billmn "billmn (1 commits)")[![denitsa-md](https://avatars.githubusercontent.com/u/21036599?v=4)](https://github.com/denitsa-md "denitsa-md (1 commits)")[![veneliniliev](https://avatars.githubusercontent.com/u/5311085?v=4)](https://github.com/veneliniliev "veneliniliev (1 commits)")

---

Tags

laravelpaginationlaravelpaginationhaving

### Embed Badge

![Health badge](/badges/justbetter-laravel-pagination-with-havings/health.svg)

```
[![Health](https://phpackages.com/badges/justbetter-laravel-pagination-with-havings/health.svg)](https://phpackages.com/packages/justbetter-laravel-pagination-with-havings)
```

###  Alternatives

[livewire/volt

An elegantly crafted functional API for Laravel Livewire.

4205.3M84](/packages/livewire-volt)[gehrisandro/tailwind-merge-laravel

TailwindMerge for Laravel merges multiple Tailwind CSS classes by automatically resolving conflicts between them

341682.2k18](/packages/gehrisandro-tailwind-merge-laravel)[whitecube/laravel-timezones

Store UTC dates in the database and work with custom timezones in the application.

106106.2k](/packages/whitecube-laravel-timezones)[forxer/laravel-gravatar

A library providing easy gravatar integration in a Laravel project.

4235.6k](/packages/forxer-laravel-gravatar)[iteks/laravel-enum

A comprehensive Laravel package providing enhanced enum functionalities, including attribute handling, select array conversions, and fluent facade interactions for robust enum management in Laravel applications.

2516.7k](/packages/iteks-laravel-enum)[singlequote/laravel-datatables

This repo contains a Datatable that can render a filterable and sortable table. It aims to be very lightweight and easy to use. It has support for retrieving data asynchronously, pagination and recursive searching in relations

1924.2k](/packages/singlequote-laravel-datatables)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
