Skip to content

[12.x] Feat: add havingNotBetween() && orHavingBetween() && orHavingNotBetween() - #58259

Merged
taylorotwell merged 1 commit into
laravel:12.xfrom
alipowerful7:feature/builder
Jan 4, 2026
Merged

[12.x] Feat: add havingNotBetween() && orHavingBetween() && orHavingNotBetween()#58259
taylorotwell merged 1 commit into
laravel:12.xfrom
alipowerful7:feature/builder

Conversation

@alipowerful7

Copy link
Copy Markdown
Contributor

Add havingBetween variants (NOT / OR)

In this PR, missing HAVING BETWEEN variants were added to the query builder to align with Laravel’s existing whereBetween API.

Added methods

havingNotBetween

orHavingBetween

orHavingNotBetween

Implementation details

All methods delegate to havingBetween to avoid logic duplication

Boolean (and / or) and negation (not) are handled consistently

Fully compatible with existing bindings and grammar compilation

Result

Improves query builder completeness and provides a more expressive and consistent HAVING API.

@taylorotwell
taylorotwell merged commit 6e246b9 into laravel:12.x Jan 4, 2026
72 checks passed
@alipowerful7
alipowerful7 deleted the feature/builder branch January 4, 2026 05:36
DarkGhostHunter pushed a commit to DarkGhostHunter/laravel-framework that referenced this pull request Jan 5, 2026
@alipowerful7 alipowerful7 changed the title [12.x] Feat: add havingNotBetween && orHavingBetween && orHavingNotBetween [12.x] Feat: add havingNotBetween() && orHavingBetween() && orHavingNotBetween() Feb 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants