From 6487c479b839e372d67811cce16ce8d1ff861268 Mon Sep 17 00:00:00 2001 From: GitLog Date: Thu, 17 Oct 2019 15:39:34 +0300 Subject: [PATCH] fix: first https://github.com/the-tinderbox/ClickhouseBuilder/blob/master/src/Integrations/Laravel/Builder.php#L90 --- src/Integrations/Laravel/Builder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Integrations/Laravel/Builder.php b/src/Integrations/Laravel/Builder.php index aa81104..eb0664f 100644 --- a/src/Integrations/Laravel/Builder.php +++ b/src/Integrations/Laravel/Builder.php @@ -87,7 +87,7 @@ public function count() */ public function first() { - $result = $this->get(); + $result = $this->limit(1)->get(); return $result[0] ?? null; }