From e8788b7f0c5f51d3100df5103fb94e1f9e456c62 Mon Sep 17 00:00:00 2001 From: Lakshmi Narayana Kadiyam Date: Tue, 9 Jul 2024 10:01:44 +0000 Subject: [PATCH] fix: combine results for custom filters --- src/Database/Concerns/Paging.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Database/Concerns/Paging.php b/src/Database/Concerns/Paging.php index 24440579..2c7ffb15 100644 --- a/src/Database/Concerns/Paging.php +++ b/src/Database/Concerns/Paging.php @@ -93,7 +93,7 @@ public function complexPaginate($perPage = 15, $columns = ['*'], $pageName = 'pa $limit = $perPage; foreach ($tables as $table) { - $results->merge( + $results = $results->merge( $this->skip($skip) ->take($limit) ->from($table)