From d030e8d30e87c98a9bfad6e98e4f9db0d6337374 Mon Sep 17 00:00:00 2001 From: kj Date: Mon, 27 Oct 2025 10:25:03 -0300 Subject: [PATCH] refactor(model)!: Allow groupBy to accept multiple args instead an array --- src/Libs/Model.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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(); }