Skip to content

[11.x] Fix numericAggregate on eloquent builder#53880

Merged
taylorotwell merged 1 commit into
laravel:11.xfrom
AmirRezaM75:fix/numeric_aggregate
Dec 13, 2024
Merged

[11.x] Fix numericAggregate on eloquent builder#53880
taylorotwell merged 1 commit into
laravel:11.xfrom
AmirRezaM75:fix/numeric_aggregate

Conversation

@AmirRezaM75
Copy link
Copy Markdown
Contributor

Hey,
In one of my projects, I encountered an issue where the numericAggregate method returned a builder instance instead of the expected numerical result."

Reason:

if (in_array(strtolower($method), $this->passthru)) {
return $this->toBase()->{$method}(...$parameters);
}
$this->forwardCallTo($this->query, $method, $parameters);
return $this;

@macropay-solutions
Copy link
Copy Markdown

@AmirRezaM75 passthru applies global scopes

macropay-solutions pushed a commit to macropay-solutions/maravel-framework that referenced this pull request Aug 22, 2025
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.

3 participants