From 71e21226d265760b05ae52f9e2543eee9bf57d88 Mon Sep 17 00:00:00 2001 From: ibnu Date: Mon, 14 Aug 2023 07:28:43 +0700 Subject: [PATCH] update logic setUpPayload custom select --- app/Http/Controllers/Controller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Controller.php b/app/Http/Controllers/Controller.php index bd2fd2d..abad8b3 100644 --- a/app/Http/Controllers/Controller.php +++ b/app/Http/Controllers/Controller.php @@ -106,7 +106,7 @@ class Controller extends BaseController if($condition){ if(isset($condition['select'])){ foreach($condition['select'] as $select){ - $builder = $builder->select($alias.".".$select); + $builder = $builder->addSelect($alias.".".$select); } } if(isset($condition['joins'])){