diff --git a/src/Integrations/Laravel/Builder.php b/src/Integrations/Laravel/Builder.php index 62b0a3a..d0b9b6b 100644 --- a/src/Integrations/Laravel/Builder.php +++ b/src/Integrations/Laravel/Builder.php @@ -198,7 +198,7 @@ public function delete() public function paginate(int $page = 1, int $perPage = 15): LengthAwarePaginator { $count = (int) $this->getConnection() - ->table($this->cloneWithout(['columns' => []]) + ->table($this->cloneWithout(['columns' => [], 'orders' => [], 'limit' => null]) ->select(new Expression('1'))) ->count();