diff --git a/src/Libs/Model.php b/src/Libs/Model.php index 2ed67e7..65d23b6 100644 --- a/src/Libs/Model.php +++ b/src/Libs/Model.php @@ -892,14 +892,14 @@ class Model /** * Defines GROUP BY in the SQL statement. * - * @param array $arr + * @param array $columns * Columns to group by. * * @return static */ - public static function groupBy(array $arr): static + public static function groupBy(string ...$columns): static { - static::$querySelect['groupBy'] = join(', ', $arr); + static::$querySelect['groupBy'] = join(', ', $columns); return new static(); }