Skip to content

Conversation

@CasEbb
Copy link
Contributor

@CasEbb CasEbb commented Nov 19, 2025

In the has*() family of methods from QueriesRelationships it is perfectly fine to use a raw expression instead of a fixed integer for $count. This PR updates the docblocks to reflect that. For example:

$query->has('relation', '>=', DB::raw('another_column'));

@taylorotwell taylorotwell merged commit 4e40cfd into laravel:12.x Nov 21, 2025
74 checks passed
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