From 097ca1ac101622b3b0769a8970a0509aa898165e Mon Sep 17 00:00:00 2001 From: Choraimy Kroonstuiver <3661474+axlon@users.noreply.github.com> Date: Thu, 25 Nov 2021 16:31:00 +0100 Subject: [PATCH] Add aggregate method to Eloquent passthru (#39772) --- src/Illuminate/Database/Eloquent/Builder.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Illuminate/Database/Eloquent/Builder.php b/src/Illuminate/Database/Eloquent/Builder.php index 15075432e492..af324015ea4e 100755 --- a/src/Illuminate/Database/Eloquent/Builder.php +++ b/src/Illuminate/Database/Eloquent/Builder.php @@ -79,6 +79,7 @@ class Builder * @var string[] */ protected $passthru = [ + 'aggregate', 'average', 'avg', 'count',