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'])){